How to disassemble a memory range with GDB?

前端 未结 8 674
故里飘歌
故里飘歌 2020-12-04 08:03

I\'m trying to disassemble a program to see a syscall assembly instruction (the INT instruction, I believe) and the handler with GDB and have written a little program (see b

8条回答
  •  误落风尘
    2020-12-04 09:01

    This isn't the direct answer to your question, but since you seem to just want to disassemble the binary, perhaps you could just use objdump:

    objdump -d program
    

    This should give you its dissassembly. You can add -S if you want it source-annotated.

提交回复
热议问题