[help] Linux kernel debug error: Cannot find DIE

朱庆 zqing1986@gmail.com
Wed Jul 11 09:32:00 GMT 2012


Hi all,

I met an error while debugging open64 built linux kernel with gdb,
following steps and error msg:
(gdb) file vmlinux
(gdb) target remote ip_addr:1234
Remote debugging using ip_addr:1234
Dwarf Error: Cannot find DIE at 0x1634a7 referenced from DIE at
0x17a459 [in module linux-kernel/linux-2.6.32.6/Build/vmlinux]
And there is also such error when set break points.

I'm not sure this is caused by incorrect dwarf info generated by
open64 compiler or gdb issues, since the gcc build kernel binary is
able to debug.
I compared the dwarf info output of the two compiler with objdump
--dwarf=info , open64's binary is about 1.95GB and gcc's binary is
1.72GB, is that too large?

Can someone give any clue on this to determine what is wrong here?

Thanks ahead!
zhuqing



More information about the Gdb mailing list