This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
[help] Linux kernel debug error: Cannot find DIE
- From: 朱庆 <zqing1986 at gmail dot com>
- To: gdb at sourceware dot org
- Date: Wed, 11 Jul 2012 17:32:05 +0800
- Subject: [help] Linux kernel debug error: Cannot find DIE
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