From 65a87239eea1cd2d3e5c5ffad60b6060a4a25996 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 6 Jun 2019 06:14:39 +0000 Subject: debug interfaces: provide dbg_* interfaces as wrappers around struct __db_vtbl. --- arch/nt64/psxdbg.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 arch/nt64/psxdbg.h (limited to 'arch/nt64/psxdbg.h') diff --git a/arch/nt64/psxdbg.h b/arch/nt64/psxdbg.h new file mode 100644 index 0000000..38c9fcd --- /dev/null +++ b/arch/nt64/psxdbg.h @@ -0,0 +1,28 @@ +#ifndef _PSXDBG_H_ +#define _PSXDBG_H_ + +struct __dbg_event; + +struct __dbg_vtbl { + int (*dbg_attach)(pid_t); + int (*dbg_detach)(int); + + int (*dbg_spawn)(const char *, char **, char **); + int (*dbg_fork)(void); + int (*dbg_suspend)(int); + int (*dbg_kill)(int); + + int (*dbg_event_query_one)(int, struct __dbg_event *); + int (*dbg_event_query_all)(int, struct __dbg_event[], int); + + int (*dbg_event_acquire)(int, struct __dbg_event *); + int (*dbg_event_respond)(int, struct __dbg_event *); + + int (*dbg_query_cpid)(int); + int (*dbg_query_syspid)(int); + + int (*dbg_common_error)(void); + int (*dbg_native_error)(void); +}; + +#endif -- cgit v1.2.3