开发者

tell gdb to disassemble "unknown" code

is it possible to configure gdb in order to debug assembly code when there are no debug symbols or no sources available ? I mean showing assembly instruction by assembly instruction when performing a step by step debug (next /step commands) (not desassembling all the function. just the next i开发者_运维知识库nstruction that will be executed)

Regards, Ayman


set disassemble-next-line auto

Is what I find most useful. You can also set it to "on" to disassemble even if source is available.

See the "Source and Machine Code" section in the documentation.


Yes. Use display/ni $pc to disassemble the next n instructions.

Also, download the GDB manual.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜