From cd305f19d57035e60b6b22be0edab31af73b7195 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 7 Sep 2019 20:12:40 +0000 Subject: nt32/nt64: debug interfaces: added __dbg_vm_read(), __dbg_vm_write(). --- src/arch/nt32/debug.c | 10 ++++++++++ src/arch/nt64/debug.c | 10 ++++++++++ 2 files changed, 20 insertions(+) (limited to 'src') diff --git a/src/arch/nt32/debug.c b/src/arch/nt32/debug.c index efb773b..e8132be 100644 --- a/src/arch/nt32/debug.c +++ b/src/arch/nt32/debug.c @@ -47,6 +47,16 @@ int __dbg_lbreak(int pfd) return syscall(SYS_dbg_lbreak,pfd); } +ssize_t __dbg_vm_read(int pfd, void * buf, size_t len, uintptr_t addr) +{ + return syscall(SYS_dbg_vm_read,pfd,buf,len,addr); +} + +ssize_t __dbg_vm_write(int pfd, const void * buf, size_t len, uintptr_t addr) +{ + return syscall(SYS_dbg_vm_write,pfd,buf,len,addr); +} + int __dbg_suspend_thread(int pfd, pid_t tid) { return syscall(SYS_dbg_suspend_thread,pfd,tid); diff --git a/src/arch/nt64/debug.c b/src/arch/nt64/debug.c index efb773b..e8132be 100644 --- a/src/arch/nt64/debug.c +++ b/src/arch/nt64/debug.c @@ -47,6 +47,16 @@ int __dbg_lbreak(int pfd) return syscall(SYS_dbg_lbreak,pfd); } +ssize_t __dbg_vm_read(int pfd, void * buf, size_t len, uintptr_t addr) +{ + return syscall(SYS_dbg_vm_read,pfd,buf,len,addr); +} + +ssize_t __dbg_vm_write(int pfd, const void * buf, size_t len, uintptr_t addr) +{ + return syscall(SYS_dbg_vm_write,pfd,buf,len,addr); +} + int __dbg_suspend_thread(int pfd, pid_t tid) { return syscall(SYS_dbg_suspend_thread,pfd,tid); -- cgit v1.2.3