projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gdb/riscv: Update test to support targets without FP hardware
[deliverable/binutils-gdb.git]
/
gdb
/
sparc64-fbsd-nat.c
diff --git
a/gdb/sparc64-fbsd-nat.c
b/gdb/sparc64-fbsd-nat.c
index 8fc8b3187f7d256e696eab027e858815da662045..4be8cdefaa698550596e3edeac8413b478cad63d 100644
(file)
--- a/
gdb/sparc64-fbsd-nat.c
+++ b/
gdb/sparc64-fbsd-nat.c
@@
-1,6
+1,6
@@
/* Native-dependent code for FreeBSD/sparc64.
/* Native-dependent code for FreeBSD/sparc64.
- Copyright (C) 2003-201
7
Free Software Foundation, Inc.
+ Copyright (C) 2003-201
8
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-46,12
+46,12
@@
sparc64fbsd_kvm_supply_pcb (struct regcache *regcache, struct pcb *pcb)
if (pcb->pcb_sp == 0)
return 0;
if (pcb->pcb_sp == 0)
return 0;
- regcache
_raw_supply (regcache,
SPARC_SP_REGNUM, &pcb->pcb_sp);
- regcache
_raw_supply (regcache,
SPARC64_PC_REGNUM, &pcb->pcb_pc);
+ regcache
->raw_supply (
SPARC_SP_REGNUM, &pcb->pcb_sp);
+ regcache
->raw_supply (
SPARC64_PC_REGNUM, &pcb->pcb_pc);
/* Synthesize %npc. */
pcb->pcb_pc += 4;
/* Synthesize %npc. */
pcb->pcb_pc += 4;
- regcache
_raw_supply (regcache,
SPARC64_NPC_REGNUM, &pcb->pcb_pc);
+ regcache
->raw_supply (
SPARC64_NPC_REGNUM, &pcb->pcb_pc);
/* Read `local' and `in' registers from the stack. */
sparc_supply_rwindow (regcache, pcb->pcb_sp, -1);
/* Read `local' and `in' registers from the stack. */
sparc_supply_rwindow (regcache, pcb->pcb_sp, -1);
@@
-59,14
+59,13
@@
sparc64fbsd_kvm_supply_pcb (struct regcache *regcache, struct pcb *pcb)
return 1;
}
return 1;
}
+/* Add some extra features to the generic SPARC target. */
+static sparc_target<fbsd_nat_target> the_sparc64_fbsd_nat_target;
+
void
_initialize_sparc64fbsd_nat (void)
{
void
_initialize_sparc64fbsd_nat (void)
{
- struct target_ops *t;
-
- /* Add some extra features to the generic SPARC target. */
- t = sparc_target ();
- fbsd_nat_add_target (t);
+ add_inf_child_target (&the_sparc64_fbsd_nat_target);
sparc_gregmap = &sparc64fbsd_gregmap;
sparc_gregmap = &sparc64fbsd_gregmap;
This page took
0.02506 seconds
and
4
git commands to generate.