From: Tom Tromey Date: Fri, 28 Feb 2025 03:26:13 +0000 (-0700) Subject: Dump debug names index X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c3bdc2348f97da571c866e77ae2db902761ac446;p=thirdparty%2Fbinutils-gdb.git Dump debug names index This changes the .debug_names reader to dump the contents of the index. This follows what the cooked index does, and also fixes a couple of test failures when run with the debug-names board: forward-spec-inter-cu.exp and backward-spec-inter-cu.exp. Approved-By: Simon Marchi --- diff --git a/gdb/dwarf2/read-debug-names.c b/gdb/dwarf2/read-debug-names.c index 2cd32d09abe..6e9ea667c3a 100644 --- a/gdb/dwarf2/read-debug-names.c +++ b/gdb/dwarf2/read-debug-names.c @@ -41,7 +41,7 @@ struct dwarf2_debug_names_index : public cooked_index_functions void dump (struct objfile *objfile) override { gdb_printf (".debug_names: exists\n"); - /* This could call the superclass method if that's useful. */ + cooked_index_functions::dump (objfile); } };