]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/sh-nbsd-nat.c
Remove ptid_get_pid
[thirdparty/binutils-gdb.git] / gdb / sh-nbsd-nat.c
index 062b5220ffa4d8c91ec2c4461763bee58bb1ef22..ae58ecbec078bb36ff14dc8a32f0375ad5b2f4ad 100644 (file)
@@ -51,7 +51,7 @@ static sh_nbsd_nat_target the_sh_nbsd_nat_target;
 void
 sh_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regno)
 {
-  pid_t pid = ptid_get_pid (regcache->ptid ());
+  pid_t pid = regcache->ptid ().pid ();
 
   if (regno == -1 || GETREGS_SUPPLIES (regcache->arch (), regno))
     {
@@ -73,7 +73,7 @@ sh_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regno)
 void
 sh_nbsd_nat_target::store_registers (struct regcache *regcache, int regno)
 {
-  pid_t pid = ptid_get_pid (regcache->ptid ());
+  pid_t pid = regcache->ptid ().pid ();
 
   if (regno == -1 || GETREGS_SUPPLIES (regcache->arch (), regno))
     {