From 5221bc6179e6bf7dc7f231ecbe2f936a401adf17 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 7 Sep 2019 21:00:30 +0000 Subject: nt32/nt64: debug interfaces: added __dbg_regs_fetch(), __dbg_regs_store(). --- include/sys/debug.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/sys') diff --git a/include/sys/debug.h b/include/sys/debug.h index b207363..d66d0ac 100644 --- a/include/sys/debug.h +++ b/include/sys/debug.h @@ -161,6 +161,10 @@ int __dbg_lbreak(int); ssize_t __dbg_vm_read(int, void *, size_t, uintptr_t); ssize_t __dbg_vm_write(int, const void *, size_t, uintptr_t); +/* thread register context */ +int __dbg_regs_fetch(int, pid_t, mcontext_t *); +int __dbg_regs_store(int, pid_t, const mcontext_t *); + /* suspend/resume thread; return previous suspend count (negative for an error) */ int __dbg_suspend_thread(int, pid_t); int __dbg_resume_thread(int, pid_t); -- cgit v1.2.3