diff options
author | Andreas Kling <kling@serenityos.org> | 2021-04-04 20:11:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-04-04 20:13:55 +0200 |
commit | 0b8226811f0340316e4b0b6c05342598f86e5cd1 (patch) | |
tree | c61eae382501b582700c68b9c4f09b51d0fa11be /Kernel/Process.cpp | |
parent | e238435c4fdb3d556452badb9767790b4652f295 (diff) | |
download | serenity-0b8226811f0340316e4b0b6c05342598f86e5cd1.zip |
Kernel+CrashReporter: Add metadata about page faults to crash reports
Crash reports for page faults now tell you what kind of memory access
failed and where. :^)
Diffstat (limited to 'Kernel/Process.cpp')
-rw-r--r-- | Kernel/Process.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/Process.cpp b/Kernel/Process.cpp index 7899f5dacb..fb18f73796 100644 --- a/Kernel/Process.cpp +++ b/Kernel/Process.cpp @@ -727,4 +727,9 @@ void Process::set_dumpable(bool dumpable) m_dumpable = dumpable; } +void Process::set_coredump_metadata(const String& key, String value) +{ + m_coredump_metadata.set(key, move(value)); +} + } |