]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add "synthetic" marker for index entries
authorTom Tromey <tromey@adacore.com>
Tue, 10 Sep 2024 18:54:19 +0000 (12:54 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 6 Mar 2025 21:17:17 +0000 (14:17 -0700)
commit4a4a50517b6cb12918beff56b288d6412bca0d0d
tree6013af79b1f93d99be5378f9f7864e03e0739a16
parente382ede5ea0ef5b0e35a58ac5f67e170b1c69f2b
Add "synthetic" marker for index entries

Currently, gdb will synthesize DW_TAG_module entries for Ada names.
These entries are treated specially by the index writer,

When GNAT starts emitting DW_TAG_module, the special case will be
incorrect, because there will be non-synthetic DW_TAG_module entries
in the index.

This patch arranges to mark the synthetic entries and changes the
index writer to follow.
gdb/dwarf2/cooked-index.c
gdb/dwarf2/cooked-index.h
gdb/dwarf2/index-write.c