]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/hppa-nbsd-nat.c
Remove ptid_get_pid
[thirdparty/binutils-gdb.git] / gdb / hppa-nbsd-nat.c
index 40a08b79870a4bd8c2b55ec46402c0a3727f5eea..2a1149086f605e7ec4c843f4d85ae15d6bd33a14 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->ptid ());
+  pid_t pid = regcache->ptid ().pid ();
 
   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->ptid ());
+  pid_t pid = regcache->ptid ().pid ();
 
   if (regnum == -1 || hppanbsd_gregset_supplies_p (regnum))
     {