How to disassemble a memory range with GDB?

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

    You can force gcc to output directly to assembly code by adding the -S switch

    gcc -S hello.c
    

提交回复
热议问题