Ticket #10279: vm-page-fault-diff

File vm-page-fault-diff, 854 bytes (added by kallisti5, 11 years ago)
Line 
1diff --git a/src/system/kernel/vm/vm.cpp b/src/system/kernel/vm/vm.cpp
2index 1d6de03..56e1e79 100644
3--- a/src/system/kernel/vm/vm.cpp
4+++ b/src/system/kernel/vm/vm.cpp
5@@ -4298,6 +4298,14 @@ vm_page_fault(addr_t address, addr_t faultAddress, bool isWrite, bool isExecute,
6 addressSpace->ReadUnlock();
7 #endif
8
9+ panic("vm_page_fault: thread \"%s\" (%" B_PRId32 ") in team "
10+ "\"%s\" (%" B_PRId32 ") tried to %s address %#lx, ip %#lx "
11+ "(\"%s\" +%#lx)\n", thread->name, thread->id,
12+ thread->team->Name(), thread->team->id,
13+ isWrite ? "write" : (isExecute ? "execute" : "read"), address,
14+ faultAddress, area ? area->name : "???", faultAddress - (area ?
15+ area->Base() : 0x0));
16+
17 // If the thread has a signal handler for SIGSEGV, we simply
18 // send it the signal. Otherwise we notify the user debugger
19 // first.