]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/m68k-bsd-nat.c
Remove ptid_get_pid
[thirdparty/binutils-gdb.git] / gdb / m68k-bsd-nat.c
index 2111c27d82d3951891a56bc41d81e6a0414b4adc..120d4c160151a0020ff80129a15aea197f858523 100644 (file)
@@ -117,7 +117,7 @@ m68kbsd_collect_fpregset (struct regcache *regcache,
 void
 m68k_bsd_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 || m68kbsd_gregset_supplies_p (regnum))
     {
@@ -146,7 +146,7 @@ m68k_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum)
 void
 m68k_bsd_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 || m68kbsd_gregset_supplies_p (regnum))
     {