From bb1628f262d5351d0b29f41b097952a4ed669c8e Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 5 Sep 2019 02:31:09 +0000 Subject: glue layer: debug.h, __dbg_spawn(): added struct __strace definition/parameter. --- include/sys/debug.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'include/sys') diff --git a/include/sys/debug.h b/include/sys/debug.h index 908ac2b..d3b73e6 100644 --- a/include/sys/debug.h +++ b/include/sys/debug.h @@ -64,6 +64,17 @@ enum __dbg_state { #define __DBG_EXCEPTION_SOURCE_KERNEL 0x04 #define __DBG_EXCEPTION_SOURCE_USER 0x08 +/* strace,ldso */ +struct __strace { + size_t size; + const char * loader; + int fdlog; + uint32_t flags; + uint32_t sysmask[16]; + uint32_t dbgmask[16]; + uint32_t osmask [32]; +}; + /* exception record */ struct __erec { uint32_t exception_code; @@ -137,7 +148,7 @@ int __dbg_attach(pid_t); int __dbg_detach(int); /* process creation/suspension/termination --> debug file descriptor */ -int __dbg_spawn(const char *, char **, char **); +int __dbg_spawn(const char *, char **, char **, const struct __strace *); int __dbg_fork(void); int __dbg_suspend(int); int __dbg_kill(int); -- cgit v1.2.3