From c3bdc2348f97da571c866e77ae2db902761ac446 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 27 Feb 2025 20:26:13 -0700 Subject: [PATCH] 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 --- gdb/dwarf2/read-debug-names.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } }; -- 2.47.3