浏览代码

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