From 24e5341bc3d7332c3bd6253f44eb6e253d4bfa31 Mon Sep 17 00:00:00 2001 From: midipix Date: Fri, 6 Sep 2019 20:35:21 +0000 Subject: nt32/nt64: __dbg_suspend() --> __dbg_{suspend|resume}_thread(). --- src/arch/nt32/debug.c | 15 ++++++++++----- src/arch/nt64/debug.c | 15 ++++++++++----- 2 files changed, 20 insertions(+), 10 deletions(-) (limited to 'src/arch') diff --git a/src/arch/nt32/debug.c b/src/arch/nt32/debug.c index a7b0a21..efb773b 100644 --- a/src/arch/nt32/debug.c +++ b/src/arch/nt32/debug.c @@ -27,11 +27,6 @@ int __dbg_fork() return syscall(SYS_dbg_fork); } -int __dbg_suspend(int pfd) -{ - return syscall(SYS_dbg_suspend,pfd); -} - int __dbg_kill(int pfd) { return syscall(SYS_dbg_kill,pfd); @@ -52,6 +47,16 @@ int __dbg_lbreak(int pfd) return syscall(SYS_dbg_lbreak,pfd); } +int __dbg_suspend_thread(int pfd, pid_t tid) +{ + return syscall(SYS_dbg_suspend_thread,pfd,tid); +} + +int __dbg_resume_thread(int pfd, pid_t tid) +{ + return syscall(SYS_dbg_resume_thread,pfd,tid); +} + int __dbg_event_query_one(int pfd, struct __dbg_event * evt) { return syscall(SYS_dbg_event_query_one,pfd,evt); diff --git a/src/arch/nt64/debug.c b/src/arch/nt64/debug.c index a7b0a21..efb773b 100644 --- a/src/arch/nt64/debug.c +++ b/src/arch/nt64/debug.c @@ -27,11 +27,6 @@ int __dbg_fork() return syscall(SYS_dbg_fork); } -int __dbg_suspend(int pfd) -{ - return syscall(SYS_dbg_suspend,pfd); -} - int __dbg_kill(int pfd) { return syscall(SYS_dbg_kill,pfd); @@ -52,6 +47,16 @@ int __dbg_lbreak(int pfd) return syscall(SYS_dbg_lbreak,pfd); } +int __dbg_suspend_thread(int pfd, pid_t tid) +{ + return syscall(SYS_dbg_suspend_thread,pfd,tid); +} + +int __dbg_resume_thread(int pfd, pid_t tid) +{ + return syscall(SYS_dbg_resume_thread,pfd,tid); +} + int __dbg_event_query_one(int pfd, struct __dbg_event * evt) { return syscall(SYS_dbg_event_query_one,pfd,evt); -- cgit v1.2.3