]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/hppa-nbsd-nat.c
Remove regcache_get_ptid
[thirdparty/binutils-gdb.git] / gdb / hppa-nbsd-nat.c
index 3547d655437ea75d231f86b48f1b735acee96930..2ffa5bc79fc45fefeb47595259536a179ee6f7ff 100644 (file)
@@ -170,7 +170,7 @@ void
 hppa_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
 
 {
-  pid_t pid = ptid_get_pid (regcache_get_ptid (regcache));
+  pid_t pid = ptid_get_pid (regcache->ptid ());
 
   if (regnum == -1 || hppanbsd_gregset_supplies_p (regnum))
     {
@@ -199,7 +199,7 @@ hppa_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
 void
 hppa_nbsd_nat_target::store_registers (struct regcache *regcache, int regnum)
 {
-  pid_t pid = ptid_get_pid (regcache_get_ptid (regcache));
+  pid_t pid = ptid_get_pid (regcache->ptid ());
 
   if (regnum == -1 || hppanbsd_gregset_supplies_p (regnum))
     {