mirror of
https://github.com/JakeHillion/drgn.git
synced 2024-12-24 02:03:05 +00:00
64f66f747f
The parsing library shouldn't really care about keeping track of these. Instead, add __dict__ and getattr()/setattr() to all of the lldwarf objects so higher layers can store the offset if they want. DwarfDie is special in two ways: 1. We want to store an offset for the DIE so we know where to parse sibling and children entries. 2. For some attributes, we need to store an offset so we know where to find them later. Both of these are changed to be relative to the CU rather than the buffer. |
||
---|---|---|
.. | ||
lldwarf | ||
__init__.py |