DWARF5 and .gdb_index/.debug_names

Tom Tromey tom@tromey.com
Tue Sep 1 18:38:31 GMT 2020


>>>>> "Mark" == Mark Wielaard <mark@klomp.org> writes:

Mark> During the BoF Pedro mentioned that the GDB DWARF5 .debug_names support
Mark> is incomplete/wrong. I was wondering whether there was a good
Mark> description of the issue and/or a bug report for it.

It's been a while but last time I looked I thought gdb's process emitted
incorrect names.  I filed this bug, with analysis:

https://sourceware.org/bugzilla/show_bug.cgi?id=24820

gdb's reader probably also needs updating, since it relies on this same
incorrect reading of the standard.

Having gdb write the index is mildly bad anyway.  It should be in the
linker, and/or dwz or debuginfod.  Putting it in gdb back in the
.gdb_index days was a mistake.

Tom


More information about the Gdb mailing list