Use DW_TAG_module for Ada

In GCC we decided to use DW_TAG_module to represent Ada packages, so
make this same decision in gdb.  This also updates tag_matches_domain
to handle this case.
This commit is contained in:
Tom Tromey
2024-06-12 08:26:05 -06:00
parent 5fce64293a
commit e382ede5ea
3 changed files with 6 additions and 3 deletions

View File

@@ -358,7 +358,7 @@ cooked_index_shard::handle_gnat_encoded_entry (cooked_index_entry *entry,
{
gdb::unique_xmalloc_ptr<char> new_name
= make_unique_xstrndup (name.data (), name.length ());
last = create (entry->die_offset, DW_TAG_namespace,
last = create (entry->die_offset, DW_TAG_module,
0, language_ada, new_name.get (), parent,
entry->per_cu);
last->canonical = last->name;