Remove regcache_get_ptid
Remove regcache_get_ptid, change all callers to call the regcache method directly. gdb/ChangeLog: * regcache.h (regcache_get_ptid): Remove, update all callers to call regcache::ptid instead. * regcache.c (regcache_get_ptid): Remove.
This commit is contained in:
parent
1869e86f2e
commit
222312d359
50 changed files with 135 additions and 139 deletions
|
@ -408,7 +408,7 @@ check_regset (int tid, int regset, int regsize)
|
|||
void
|
||||
s390_linux_nat_target::fetch_registers (struct regcache *regcache, int regnum)
|
||||
{
|
||||
pid_t tid = get_ptrace_pid (regcache_get_ptid (regcache));
|
||||
pid_t tid = get_ptrace_pid (regcache->ptid ());
|
||||
|
||||
if (regnum == -1 || S390_IS_GREGSET_REGNUM (regnum))
|
||||
fetch_regs (regcache, tid);
|
||||
|
@ -462,7 +462,7 @@ s390_linux_nat_target::fetch_registers (struct regcache *regcache, int regnum)
|
|||
void
|
||||
s390_linux_nat_target::store_registers (struct regcache *regcache, int regnum)
|
||||
{
|
||||
pid_t tid = get_ptrace_pid (regcache_get_ptid (regcache));
|
||||
pid_t tid = get_ptrace_pid (regcache->ptid ());
|
||||
|
||||
if (regnum == -1 || S390_IS_GREGSET_REGNUM (regnum))
|
||||
store_regs (regcache, tid, regnum);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue