mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
Kernel: Dump backtrace on user process page fault.
This commit is contained in:
parent
5dee5c325e
commit
89df887e1f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue