mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:47:34 +00:00
LibCoreDump: Add 'library_containing' API to CoreDump::Reader
This API returns info about the library whose range in memory contains a given address (similar to 'region_containing', but for libraries).
This commit is contained in:
parent
399091dec3
commit
65ffd8de69
2 changed files with 43 additions and 0 deletions
|
@ -58,6 +58,14 @@ public:
|
|||
Optional<uint32_t> peek_memory(FlatPtr address) const;
|
||||
const ELF::Core::MemoryRegionInfo* region_containing(FlatPtr address) const;
|
||||
|
||||
struct LibraryData {
|
||||
String name;
|
||||
FlatPtr base_address { 0 };
|
||||
OwnPtr<MappedFile> file;
|
||||
ELF::Image lib_elf;
|
||||
};
|
||||
const LibraryData* library_containing(FlatPtr address) const;
|
||||
|
||||
const Backtrace backtrace() const;
|
||||
const HashMap<String, String> metadata() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue