[Dwarf-discuss] Ranges for DW_TAG_namespace

Robinson, Paul paul.robinson@sony.com
Thu Sep 14 23:50:57 GMT 2023


I suppose it didn't seem useful to provide ranges on namespaces. A C++ namespace isn't a program entity of its own, it's a way of managing names of entities. It doesn't even restrict the scope of those names; you can refer to them anywhere if you use the fully qualified version of the name. (With the obvious caveat about names defined in anonymous namespaces.)

Did you have a reason for considering a namespace to be a program entity? What would that entity do?
--paulr

From: Dwarf-discuss <dwarf-discuss-bounces+paul.robinson=sony.com@lists.dwarfstd.org> On Behalf Of rifkin.jer--- via Dwarf-discuss
Sent: Thursday, September 14, 2023 6:51 PM
To: dwarf-discuss@lists.dwarfstd.org
Subject: [Dwarf-discuss] Ranges for DW_TAG_namespace

Hello,
What is the reasoning for not including range information on DW_TAG_namespace DIEs? Is there a canonical way to check if a DW_TAG_namespace DIE contains a given address?

Thank you,
Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.dwarfstd.org/pipermail/dwarf-discuss/attachments/20230914/d9770972/attachment.htm>


More information about the Dwarf-discuss mailing list