X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fmips-nbsd-nat.c;h=527c67a7abc567cf045ec8d23635adafefca1c38;hb=42330a681af23a80d3e1f201d2a65886875e74bd;hp=b9fc6279d095b98640e6aa2f4e45e9f686d3d632;hpb=d9f719f1adb653ab40a55e4c1b8c300215b400ff;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/mips-nbsd-nat.c b/gdb/mips-nbsd-nat.c index b9fc6279d0..527c67a7ab 100644 --- a/gdb/mips-nbsd-nat.c +++ b/gdb/mips-nbsd-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for MIPS systems running NetBSD. - Copyright (C) 2000-2018 Free Software Foundation, Inc. + Copyright (C) 2000-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -49,7 +49,7 @@ getregs_supplies (struct gdbarch *gdbarch, int regno) void mips_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regno) { - pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); + pid_t pid = regcache->ptid ().pid (); struct gdbarch *gdbarch = regcache->arch (); if (regno == -1 || getregs_supplies (gdbarch, regno)) @@ -79,7 +79,7 @@ mips_nbsd_nat_target::fetch_registers (struct regcache *regcache, int regno) void mips_nbsd_nat_target::store_registers (struct regcache *regcache, int regno) { - pid_t pid = ptid_get_pid (regcache_get_ptid (regcache)); + pid_t pid = regcache->ptid ().pid (); struct gdbarch *gdbarch = regcache->arch (); if (regno == -1 || getregs_supplies (gdbarch, regno)) @@ -113,8 +113,9 @@ mips_nbsd_nat_target::store_registers (struct regcache *regcache, int regno) } } +void _initialize_mipsnbsd_nat (); void -_initialize_mipsnbsd_nat (void) +_initialize_mipsnbsd_nat () { add_inf_child_target (&the_mips_nbsd_nat_target); }