How to disassemble a memory range with GDB?

前端 未结 8 669
故里飘歌
故里飘歌 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:54

    If all that you want is to see the disassembly with the INTC call, use objdump -d as someone mentioned but use the -static option when compiling. Otherwise the fopen function is not compiled into the elf and is linked at runtime.

提交回复
热议问题