]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Entries from anon-struct.exp not in cooked index
authorTom Tromey <tom@tromey.com>
Sun, 19 Jan 2025 01:15:21 +0000 (18:15 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:05:27 +0000 (16:05 -0600)
commite7605fe0c0f7fa14dff86373f2baae2d56da1d30
tree1697789e062cfc3af0dd03d9c85935531b71e210
parenta6862c3322ca7575a251ab7e89a00d67e7580035
Entries from anon-struct.exp not in cooked index

g++ will sometimes use a typedef to give a name to an otherwise
anonymous type for linkage purposes.  gdb tries to handle this odd
scenario, which is enforced by anon-struct.exp.

It's difficult to detect this problem in the current tree, but the
cooked index does not include an entry for these DIEs.

This patch changes gdb to add these to the index.  This is needed by
subsequent changes in this series.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32519
Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/cooked-index-shard.h
gdb/dwarf2/cooked-index-worker.h
gdb/dwarf2/cooked-indexer.c