]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Ensure cooked_index_entry self-tests are run
authorTom Tromey <tromey@adacore.com>
Thu, 22 May 2025 16:46:50 +0000 (10:46 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 22 May 2025 16:48:11 +0000 (10:48 -0600)
commit2711e4754fc4d9ed594491d3e87a37d0ffa165ed
tree0a7391c9595ef9fccf71f593f124b8487ce5b985
parent52d8dcccc0c4fff5c48145a4156338c1f5c19b3c
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.
gdb/dwarf2/cooked-index-entry.c