]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Emit some type declarations in .gdb_index
authorTom Tromey <tom@tromey.com>
Tue, 11 Feb 2025 18:48:09 +0000 (11:48 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:05:27 +0000 (16:05 -0600)
commit0fa4f62568b1deeb071c4a6ae8a1671c8ec7ba6e
treef34f98d878afa141269f0ed36d349e24c9355b46
parentcfe3a766e64663091be4a791394269bf353d6d27
Emit some type declarations in .gdb_index

If you run struct-decl.exp with the .gdb_index board, you will see
that "the_type" is not emitted in the index.  This would cause a
failure in this series.  The fix is to ensure that certain necessary
type declarations are emitted.

However, a naive fix here will regress stub-array-size.exp, where a
type declaration and a type definition are both seen -- but the
declaration is seen first and causes a failure.  This is handled by
adding some code (including a mild hack) to filter out type
declarations when a corresponding type definition is seen.

Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/index-write.c