mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
Kernel: Add ptrace commands for reading/writing the debug registers
This adds PT_PEEKDEBUG and PT_POKEDEBUG to allow for reading/writing the debug registers, and updates the Kernel's debug handler to read the new information from the debug status register.
This commit is contained in:
parent
97a4c627cb
commit
3123ffb19d
Notes:
sideshowbarker
2024-07-18 19:26:48 +09:00
Author: https://github.com/FalseHonesty
Commit: 3123ffb19d
Pull-request: https://github.com/SerenityOS/serenity/pull/6353
Reviewed-by: https://github.com/bgianfo ✅
6 changed files with 79 additions and 5 deletions
|
@ -972,6 +972,9 @@ public:
|
|||
u32 signal_mask() const;
|
||||
void clear_signals();
|
||||
|
||||
KResultOr<u32> peek_debug_register(u32 register_index);
|
||||
KResult poke_debug_register(u32 register_index, u32 data);
|
||||
|
||||
void set_dump_backtrace_on_finalization() { m_dump_backtrace_on_finalization = true; }
|
||||
|
||||
DispatchSignalResult dispatch_one_pending_signal();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue