]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Ada import functions not in index
authorTom Tromey <tom@tromey.com>
Thu, 2 Jan 2025 20:40:27 +0000 (13:40 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:05:27 +0000 (16:05 -0600)
commita7343246f5319e67e7e96ba98596c94cda115560
tree0c02f6586aa97a43202867b53d82cc323b552acd
parent0fa4f62568b1deeb071c4a6ae8a1671c8ec7ba6e
Ada import functions not in index

The cooked index does not currently contain entries for Ada import
functions.  This means that whether or not these are visible to
"break" depends on which CUs were previously expanded -- clearly a
bug.

This patch fixes the issue.  I think the comments in the patch explain
the fix reasonably well.

Perhaps one to-do item here is to change GNAT to use
DW_TAG_imported_declaration for these imports.  This may eventually
let us remove some of the current hacks.

This version includes a fix from Simon to initialize the new member.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=32511
Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/dwarf2/abbrev.c
gdb/dwarf2/abbrev.h
gdb/dwarf2/cooked-indexer.c
gdb/dwarf2/read.c
gdb/dwarf2/read.h
gdb/testsuite/gdb.ada/import.exp