X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fsparc-nbsd-nat.c;h=7138d7df7376c2e4b436977cfba50a9c0ac96b7a;hb=c3b149eb7697b376df1b3a47d0102afda389ee6d;hp=69987cffc9df14006e4a22f0f979429fa0d32ad7;hpb=481695ed5f6e0a8a9c9c50bfac1cdd2b3151e6c9;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sparc-nbsd-nat.c b/gdb/sparc-nbsd-nat.c index 69987cffc9..7138d7df73 100644 --- a/gdb/sparc-nbsd-nat.c +++ b/gdb/sparc-nbsd-nat.c @@ -1,6 +1,6 @@ /* Native-dependent code for NetBSD/sparc. - Copyright (C) 2002-2017 Free Software Foundation, Inc. + Copyright (C) 2002-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -44,25 +44,27 @@ sparc32nbsd_supply_pcb (struct regcache *regcache, struct pcb *pcb) if (pcb->pcb_sp == 0) return 0; - regcache_raw_supply (regcache, SPARC_SP_REGNUM, &pcb->pcb_sp); - regcache_raw_supply (regcache, SPARC_O7_REGNUM, &pcb->pcb_pc); - regcache_raw_supply (regcache, SPARC32_PSR_REGNUM, &pcb->pcb_psr); - regcache_raw_supply (regcache, SPARC32_WIM_REGNUM, &pcb->pcb_wim); - regcache_raw_supply (regcache, SPARC32_PC_REGNUM, &pcb->pcb_pc); + regcache->raw_supply (SPARC_SP_REGNUM, &pcb->pcb_sp); + regcache->raw_supply (SPARC_O7_REGNUM, &pcb->pcb_pc); + regcache->raw_supply (SPARC32_PSR_REGNUM, &pcb->pcb_psr); + regcache->raw_supply (SPARC32_WIM_REGNUM, &pcb->pcb_wim); + regcache->raw_supply (SPARC32_PC_REGNUM, &pcb->pcb_pc); sparc_supply_rwindow (regcache, pcb->pcb_sp, -1); return 1; } +static sparc_target the_sparc_nbsd_nat_target; + +void _initialize_sparcnbsd_nat (); void -_initialize_sparcnbsd_nat (void) +_initialize_sparcnbsd_nat () { sparc_gregmap = &sparc32nbsd_gregmap; sparc_fpregmap = &sparc32_bsd_fpregmap; - /* We've got nothing to add to the generic SPARC target. */ - add_target (sparc_target ()); + add_inf_child_target (&sparc_nbsd_nat_target); /* Support debugging kernel virtual memory images. */ bsd_kvm_add_target (sparc32nbsd_supply_pcb);