X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fvax-bsd-nat.c;h=5f67061e05ae9b3022058a7941e76b88f4a01166;hb=222312d359fe0a68f8583ba315583ee8cc94f252;hp=7f7b54a84125701a4254dbfbded66b8b6656ddc2;hpb=d9f719f1adb653ab40a55e4c1b8c300215b400ff;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/vax-bsd-nat.c b/gdb/vax-bsd-nat.c index 7f7b54a841..5f67061e05 100644 --- a/gdb/vax-bsd-nat.c +++ b/gdb/vax-bsd-nat.c @@ -74,7 +74,7 @@ void vax_bsd_nat_target::fetch_registers (struct regcache *regcache, int regnum) { struct reg regs; - pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); + pid_t pid = ptid_get_pid (regcache->ptid ()); if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't get registers")); @@ -89,7 +89,7 @@ void vax_bsd_nat_target::store_registers (struct regcache *regcache, int regnum) { struct reg regs; - pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); + pid_t pid = ptid_get_pid (regcache->ptid ()); if (ptrace (PT_GETREGS, pid, (PTRACE_TYPE_ARG3) ®s, 0) == -1) perror_with_name (_("Couldn't get registers"));