mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:27:35 +00:00
LibDebug: Handle DWARF 4 address ranges
The format of the address range section is different between DWARF version 4 and version 5. This meant that we parsed programs compiled with `-gdwarf-4` incorrectly.
This commit is contained in:
parent
7546295abe
commit
815f15f82c
5 changed files with 70 additions and 14 deletions
|
@ -33,6 +33,7 @@ public:
|
|||
ReadonlyBytes debug_range_lists_data() const { return m_debug_range_lists_data; }
|
||||
ReadonlyBytes debug_str_offsets_data() const { return m_debug_str_offsets_data; }
|
||||
ReadonlyBytes debug_addr_data() const { return m_debug_addr_data; }
|
||||
ReadonlyBytes debug_ranges_data() const { return m_debug_ranges_data; }
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_compilation_unit(Callback) const;
|
||||
|
@ -64,6 +65,7 @@ private:
|
|||
ReadonlyBytes m_debug_range_lists_data;
|
||||
ReadonlyBytes m_debug_str_offsets_data;
|
||||
ReadonlyBytes m_debug_addr_data;
|
||||
ReadonlyBytes m_debug_ranges_data;
|
||||
|
||||
NonnullOwnPtrVector<Dwarf::CompilationUnit> m_compilation_units;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue