Golang1.12使用gdb断点,为什么不显示文件地址?

时间:2019-05-28 15:18:08

标签: go gdb

(gdb) info files
Symbols from "/Users/zsg/go/src/go-learning/test/main".
Local exec file:
    `/Users/zsg/go/src/go-learning/test/main', file type mach-o-x86-64.
    Entry point: 0x1052720
    0x0000000001001000 - 0x0000000001093074 is .text
    0x0000000001093080 - 0x00000000010e19ad is __TEXT.__rodata
    0x00000000010e19c0 - 0x00000000010e1ac2 is __TEXT.__symbol_stub1
    0x00000000010e1ae0 - 0x00000000010e2744 is __TEXT.__typelink
    0x00000000010e2748 - 0x00000000010e27b0 is __TEXT.__itablink
    0x00000000010e27b0 - 0x00000000010e27b0 is __TEXT.__gosymtab
    0x00000000010e27c0 - 0x000000000115bee7 is __TEXT.__gopclntab
    0x000000000115c000 - 0x000000000115c158 is __DATA.__nl_symbol_ptr
    0x000000000115c160 - 0x0000000001168c9c is __DATA.__noptrdata
    0x0000000001168ca0 - 0x000000000116f610 is .data
    0x000000000116f620 - 0x000000000118ae50 is .bss
    0x000000000118ae60 - 0x000000000118d418 is __DATA.__noptrbss
(gdb) b*0x1052720
Breakpoint 1 at 0x1052720  file address should be here........
(gdb)

0 个答案:

没有答案