2
(gdb) b processMessage

No symbol table is loaded.  Use the "file" command.

Make breakpoint pending on future shared library load? (y or [n]) n

(gdb) file aqm_wfmgr

Reading symbols from /home/dir/bin/mgr...done.

(gdb) b processMessage
Function "processMessage" not defined.

如何在该二进制文件的特定文件中为特定函数@某些行设置断点?

如果我直接给出行号或函数名称和文件号,它不会识别。请帮助。

(gdb) b 599

Cannot access memory at address 0x498f14

(gdb) b 598

Cannot access memory at address 0x498f14

(gdb) b processMessage 598

Function "processMessage" not defined.
4

1 回答 1

1

很可能您的二进制文件缺少调试信息。确保至少编译它-g(假设您使用的是 gcc)。

于 2013-02-22T08:09:12.527 回答