aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2025-05-22 10:46:50 -0600
committerTom Tromey <tromey@adacore.com>2025-05-22 10:48:11 -0600
commit2711e4754fc4d9ed594491d3e87a37d0ffa165ed (patch)
tree0a7391c9595ef9fccf71f593f124b8487ce5b985
parent52d8dcccc0c4fff5c48145a4156338c1f5c19b3c (diff)
downloadbinutils-2711e4754fc4d9ed594491d3e87a37d0ffa165ed.zip
binutils-2711e4754fc4d9ed594491d3e87a37d0ffa165ed.tar.gz
binutils-2711e4754fc4d9ed594491d3e87a37d0ffa165ed.tar.bz2
Ensure cooked_index_entry self-tests are run
While looking at code coverage for gdb, I noticed that the cooked_index_entry self-tests were not run. I tracked this down to a formatting error in cooked-index-entry.c. I suspect it might be better to use a macro to define these initialization functions. That would probably remove the possibility for this kind of error.
-rw-r--r--gdb/dwarf2/cooked-index-entry.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/dwarf2/cooked-index-entry.c b/gdb/dwarf2/cooked-index-entry.c
index 52db851..9a921f2 100644
--- a/gdb/dwarf2/cooked-index-entry.c
+++ b/gdb/dwarf2/cooked-index-entry.c
@@ -234,7 +234,8 @@ cooked_index_entry::write_scope (struct obstack *storage,
}
void _initialize_dwarf2_entry ();
-void _initialize_dwarf2_entry ()
+void
+_initialize_dwarf2_entry ()
{
#if GDB_SELF_TEST
selftests::register_test ("cooked_index_entry::compare", test_compare);