How to do source level debugging of x86 code with GDB inside QEMU?

后端 未结 3 979
青春惊慌失措
青春惊慌失措 2021-01-05 22:37

I wrote a x86 assembly program for MBR section. I compile it as follows:

nasm hellombr.asm -f bin -o hellombr.img

Then I run it in qemu:

3条回答
  •  [愿得一人]
    2021-01-05 23:26

    A really good (and simple) way is to use IDA with bochs, you find an excellent blog post on it here, along with some other hints/suggestions for bootloader development.

提交回复
热议问题