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

@@ -678,7 +678,7 @@ public:
{
/* These entries are synthesized by the reader, and so should not
be written. */
if (entry->lang == language_ada && entry->tag == DW_TAG_namespace)
if (entry->lang == language_ada && entry->tag == DW_TAG_module)
return;
m_name_to_value_set[entry->name].emplace_back (entry);