1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:37:45 +00:00

LibCoreDump+CrashDaemon: Add and use CoreDump::Backtrace

Creating a backtrace from a crashdump already existed as a few
standalone functions in CrashDaemon. This patch refactors the code
required for this to make it generally usable and moves it to
CoreDump::Backtrace, which provides both raw data as well as
stringification.
This commit is contained in:
Linus Groh 2020-12-29 13:04:26 +01:00 committed by Andreas Kling
parent e2e2b2c08e
commit 2939ad0110
8 changed files with 251 additions and 114 deletions

View file

@ -29,6 +29,7 @@
#include <AK/MappedFile.h>
#include <AK/Noncopyable.h>
#include <AK/OwnPtr.h>
#include <LibCoreDump/Forward.h>
#include <LibELF/CoreDump.h>
#include <LibELF/Image.h>
@ -54,6 +55,8 @@ public:
Optional<uint32_t> peek_memory(FlatPtr address) const;
const ELF::Core::MemoryRegionInfo* region_containing(FlatPtr address) const;
Backtrace backtrace() const;
private:
class NotesEntryIterator {
public: