diff options
author | midipix <writeonce@midipix.org> | 2019-09-11 02:47:12 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2019-09-11 02:47:12 +0000 |
commit | 45970c16c15b7edb20cffbe24d8b37e3fa3dca51 (patch) | |
tree | af3c6db0bbf33189ebb39a23ed8cdca7dfdb1ac9 /include | |
parent | 5221bc6179e6bf7dc7f231ecbe2f936a401adf17 (diff) | |
download | mmglue-45970c16c15b7edb20cffbe24d8b37e3fa3dca51.tar.bz2 mmglue-45970c16c15b7edb20cffbe24d8b37e3fa3dca51.tar.xz |
nt32/nt64: debug interfaces: added __dbg_info_get(), __dbg_info_set().
Diffstat (limited to 'include')
-rw-r--r-- | include/sys/debug.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/sys/debug.h b/include/sys/debug.h index d66d0ac..38a7e13 100644 --- a/include/sys/debug.h +++ b/include/sys/debug.h @@ -29,6 +29,19 @@ enum __dbg_state { __DBG_STATE_DLL_UNLOAD, }; +/* debug process/session info */ +enum __dbg_info { + __DBG_INFO_IMAGE_RPATH, + __DBG_INFO_IMAGE_NPATH, + __DBG_INFO_IMAGE_APATH, + __DBG_INFO_IMAGE_DPATH, + __DBG_INFO_REPORTED_IMAGE_RPATH, + __DBG_INFO_REPORTED_IMAGE_APATH, + __DBG_INFO_REPORTED_IMAGE_NPATH, + __DBG_INFO_REPORTED_IMAGE_DPATH, + __DBG_INFO_CAP, +}; + /* debug responses */ #define __DBG_RESPONSE_CONTINUE (0x00010002) #define __DBG_RESPONSE_EXCEPTION_HANDLED (0x00010001) @@ -165,6 +178,10 @@ ssize_t __dbg_vm_write(int, const void *, size_t, uintptr_t); int __dbg_regs_fetch(int, pid_t, mcontext_t *); int __dbg_regs_store(int, pid_t, const mcontext_t *); +/* debug information */ +ssize_t __dbg_info_get(int, pid_t, int, void *, size_t); +ssize_t __dbg_info_set(int, pid_t, int, const void *, size_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); |