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 に答える