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.
This commit is contained in:
Marcel Moolenaar 2004-07-17 17:08:13 +00:00
parent a8028b2625
commit 6ec5fc1963
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=132300

View File

@ -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;
}