mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 10:00:51 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user