Debugging non-stripped binaries, gdb prints e.g. GNU gdb 6.4 Copyright 2005 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i686-pc-linux-gnu"... dwarf2read.c:5468: internal-error: could not find partial DIE in cache A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) n dwarf2read.c:5468: internal-error: could not find partial DIE in cache A problem internal to GDB has been detected, further debugging may prove unreliable. Create a core file of GDB? (y or n) n Thereafter, trying to debug results in all sorts of nastiness: Warning: Cannot insert breakpoint 0. Error accessing memory address 0x0: Input/output error. Red Hat have a patch for this; the commit to Fedora is https://www.redhat.com/archives/fedora-cvs-commits/2005-May/msg00100.html The patch needs a small amount of massaging to apply to Gentoo gdb 6.4-r1. I attach the adjusted patch, which corrects the bug. Suggest the patch be added to Gentoo tree.
Created attachment 77944 [details, diff] gdb-6.3-partial-die-20050503.patch
added to 6.4-r2, thanks for the info