Преглед изворни кода

Add 0x to llvm-symbolizer input

Raul Silvera пре 9 година
родитељ
комит
34dedbc505
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      internal/binutils/addr2liner_llvm.go

+ 1
- 1
internal/binutils/addr2liner_llvm.go Прегледај датотеку

150
 // addrInfo returns the stack frame information for a specific program
150
 // addrInfo returns the stack frame information for a specific program
151
 // address. It returns nil if the address could not be identified.
151
 // address. It returns nil if the address could not be identified.
152
 func (d *llvmSymbolizer) addrInfo(addr uint64) ([]plugin.Frame, error) {
152
 func (d *llvmSymbolizer) addrInfo(addr uint64) ([]plugin.Frame, error) {
153
-	if err := d.rw.write(fmt.Sprintf("%s %x", d.filename, addr-d.base)); err != nil {
153
+	if err := d.rw.write(fmt.Sprintf("%s 0x%x", d.filename, addr-d.base)); err != nil {
154
 		return nil, err
154
 		return nil, err
155
 	}
155
 	}
156
 
156