From 8fa131ee7743206776b6a19e9254df69d3adb2ce Mon Sep 17 00:00:00 2001 From: marcel Date: Sat, 17 Jul 2004 17:08:13 +0000 Subject: o ps_pd{read|write} and ps_pt{read|write} are obsolete interface functions. Only ps_p{read|write} remains. o Remove ps_getpid. We don't need it now. --- gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'gnu/usr.bin/gdb') diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c index 7110c8c..46e1351 100644 --- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c +++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c @@ -997,26 +997,13 @@ ps_pglobal_lookup (struct ps_prochandle *ph, const char *obj, } ps_err_e -ps_pdread (struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t len) +ps_pread (struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t len) { return target_read_memory ((CORE_ADDR) addr, buf, len); } ps_err_e -ps_pdwrite (struct ps_prochandle *ph, psaddr_t addr, const void *buf, - size_t len) -{ - return target_write_memory ((CORE_ADDR) addr, (void *)buf, len); -} - -ps_err_e -ps_ptread (struct ps_prochandle *ph, psaddr_t addr, void *buf, size_t len) -{ - return target_read_memory ((CORE_ADDR) addr, buf, len); -} - -ps_err_e -ps_ptwrite (struct ps_prochandle *ph, psaddr_t addr, const void *buf, +ps_pwrite (struct ps_prochandle *ph, psaddr_t addr, const void *buf, size_t len) { return target_write_memory ((CORE_ADDR) addr, (void *)buf, len); @@ -1090,10 +1077,3 @@ ps_lcontinue(struct ps_prochandle *ph, lwpid_t lwpid) return PS_ERR; return PS_OK; } - -pid_t -ps_getpid (struct ps_prochandle *ph) -{ - return ph->pid; -} - -- cgit v1.1