<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /root/ctest/printf...(no debugging symbols found)...done.
(gdb) disas main
Dump of assembler code for function main:
0x0000000000400498 <main+0>: push %rbp
0x0000000000400499 <main+1>: mov %rsp,%rbp
0x000000000040049c <main+4>: sub $0x10,%rsp
如何GDB解釋main
時沒有調試符號裝?當沒有調試符號加載時,gdb如何解釋`main`?
我有兩個問題:1.爲什麼還會出現'main'未加載調試符號時符號2.爲何名字'main'不manglinged走? – kernel 2011-05-09 05:23:27
因此對於C++ ABI,'disas main'將不起作用? – kernel 2011-05-09 05:49:06