Re: [PATCH v2 03/28] Emit some type declarations in .gdb_index

Simon Marchi
2025-04-21T02:51:17Z

On 2025-04-02 19:45, Tom Tromey wrote:
> 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.

I don't really understand the use of GDB_INDEX_SYMBOL_KIND_UNUSED5, what
does it mean?

Simon