How to disassemble a memory range with GDB?

前端 未结 8 680
故里飘歌
故里飘歌 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 08:47

    Yeah, disassemble is not the best command to use here. The command you want is "x/i" (examine as instructions):

    (gdb) x/i 0xdeadbeef
    

提交回复
热议问题