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:
Simon Marchi
2018-05-30 14:54:34 -04:00
parent 1869e86f2e
commit 222312d359
50 changed files with 135 additions and 139 deletions

View File

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