mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:37:45 +00:00
LibDebug: Support addrx*
, strx*
and rnglistx
forms
These forms were introduced in DWARF5, and have a fair deal of advantages over the more traditional encodings: they reduce the size of the binary and the number of relocations. GCC does not emit these with `-g1` by default, but Clang does at all debug levels.
This commit is contained in:
parent
8e5b70a0ba
commit
ac53569bd1
7 changed files with 213 additions and 3 deletions
|
@ -31,6 +31,8 @@ public:
|
|||
ReadonlyBytes debug_strings_data() const { return m_debug_strings_data; }
|
||||
ReadonlyBytes debug_line_strings_data() const { return m_debug_line_strings_data; }
|
||||
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; }
|
||||
|
||||
template<typename Callback>
|
||||
void for_each_compilation_unit(Callback) const;
|
||||
|
@ -60,6 +62,8 @@ private:
|
|||
ReadonlyBytes m_debug_line_data;
|
||||
ReadonlyBytes m_debug_line_strings_data;
|
||||
ReadonlyBytes m_debug_range_lists_data;
|
||||
ReadonlyBytes m_debug_str_offsets_data;
|
||||
ReadonlyBytes m_debug_addr_data;
|
||||
|
||||
NonnullOwnPtrVector<Dwarf::CompilationUnit> m_compilation_units;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue