mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
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:
@ -45,7 +45,7 @@ linux_nat_trad_target::fetch_register (struct regcache *regcache, int regnum)
|
||||
return;
|
||||
}
|
||||
|
||||
pid = get_ptrace_pid (regcache_get_ptid (regcache));
|
||||
pid = get_ptrace_pid (regcache->ptid ());
|
||||
|
||||
size = register_size (gdbarch, regnum);
|
||||
buf = (gdb_byte *) alloca (size);
|
||||
@ -104,7 +104,7 @@ linux_nat_trad_target::store_register (const struct regcache *regcache,
|
||||
|| gdbarch_cannot_store_register (gdbarch, regnum))
|
||||
return;
|
||||
|
||||
pid = get_ptrace_pid (regcache_get_ptid (regcache));
|
||||
pid = get_ptrace_pid (regcache->ptid ());
|
||||
|
||||
size = register_size (gdbarch, regnum);
|
||||
buf = (gdb_byte *) alloca (size);
|
||||
|
Reference in New Issue
Block a user