0

I want to debug both my QEMU source code and Linux kernel source code(ported to a particular board) when trying to boot the kernel image on QEMU.

So i start something like this :

Step 1 : $gdb qemu-system-arm

step 2 : $break { list of breakpoints in qemu src }

step 3 : $run {kernel image} {boot loader image}

step 4 : open another console

step 5 : $arm-none-eabi-gdb

step 6 : $file {load debug symbol file for compiled kernel src}

Ques : what file in the compiled kernel src contains the debug symbols ?

If i load the same kernel image, it says file format not recognized.

I tried this with a sample bare metal code and i was able to debug.

4

1 回答 1

2

符号通常可以在System.map中找到。关于“无法识别的文件格式”,请确保您没有尝试加载压缩图像。

于 2013-03-13T09:39:04.710 回答