mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibDebug:: Add DwarfInfo::get_die_at_address
This function returns the die object whose address range intersects with the given address. This function will also construct the DIE cache, if it hasn't been constructed yet.
This commit is contained in:
parent
92d4962d04
commit
fb31aae20d
Notes:
sideshowbarker
2024-07-18 12:01:18 +09:00
Author: https://github.com/itamar8910
Commit: fb31aae20d
Pull-request: https://github.com/SerenityOS/serenity/pull/8149
Reviewed-by: https://github.com/gunnarbeutner
2 changed files with 22 additions and 0 deletions
|
@ -37,6 +37,8 @@ public:
|
|||
AttributeValue get_attribute_value(AttributeDataForm form, ssize_t implicit_const_value,
|
||||
InputMemoryStream& debug_info_stream, const CompilationUnit* unit = nullptr) const;
|
||||
|
||||
Optional<DIE> get_die_at_address(FlatPtr) const;
|
||||
|
||||
private:
|
||||
void populate_compilation_units();
|
||||
void build_cached_dies() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue