1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

LibELF+LibCoreDump: Add a Metadata notes entry

This is a new NotesEntry type which will allow applications to embed
arbitrary metadata in crashdumps (stored as a JSON string). It will be
used to store an assertion message, for example.
This commit is contained in:
Linus Groh 2020-12-30 15:06:33 +01:00 committed by Andreas Kling
parent aa941a31ed
commit 7413a7c509
3 changed files with 42 additions and 2 deletions

View file

@ -26,6 +26,7 @@
#pragma once
#include <AK/HashMap.h>
#include <AK/MappedFile.h>
#include <AK/Noncopyable.h>
#include <AK/OwnPtr.h>
@ -57,7 +58,8 @@ public:
Optional<uint32_t> peek_memory(FlatPtr address) const;
const ELF::Core::MemoryRegionInfo* region_containing(FlatPtr address) const;
Backtrace backtrace() const;
const Backtrace backtrace() const;
const HashMap<String, String> metadata() const;
private:
class NotesEntryIterator {