-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug/gdbstub,cpu/idt: Report page faults as SIGSEGV in gdbstub
The gdbstub currently triggers a breakpoint on a panic, which allows the debugger to directly probe the state of the kernel when a panic occurs. However, some of the context is lost before the panic handler is invoked. Therefore this patch introduces direct handling of unhandled page faults within the gdbstub to provide that additional context. If the gdbstub feature is not enabled then these changes have no effect. Signed-off-by: Roy Hopkins <rhopkins@suse.de>
- Loading branch information
1 parent
a66e4bb
commit c0ee673
Showing
2 changed files
with
17 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters