diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-04-28 22:05:13 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-04-28 22:05:13 +0200 |
commit | 89df887e1fbbd7027a120d2682bca6d791456068 (patch) | |
tree | e8dc0db2c44adc477ecd18927d2cbd8c71a52e23 /Kernel/i386.cpp | |
parent | 5dee5c325e45bbda9da656290b6478de55a09f90 (diff) | |
download | serenity-89df887e1fbbd7027a120d2682bca6d791456068.zip |
Kernel: Dump backtrace on user process page fault.
Diffstat (limited to 'Kernel/i386.cpp')
-rw-r--r-- | Kernel/i386.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Kernel/i386.cpp b/Kernel/i386.cpp index a5d74a49f6..4280ec9a7b 100644 --- a/Kernel/i386.cpp +++ b/Kernel/i386.cpp @@ -7,6 +7,7 @@ #include "IRQHandler.h" #include "PIC.h" #include "Scheduler.h" +#include <Kernel/KSyms.h> //#define PAGE_FAULT_DEBUG @@ -280,6 +281,7 @@ void exception_14_handler(RegisterDumpWithExceptionCode& regs) regs.exception_code & 2 ? "write" : "read", faultAddress); dump(regs); + dump_backtrace(ksyms_ready); current->process().crash(); } else if (response == PageFaultResponse::Continue) { #ifdef PAGE_FAULT_DEBUG |