projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86: fold OP_Mwaitx() into OP_Mwait()
[deliverable/binutils-gdb.git]
/
gdb
/
sparc64-obsd-nat.c
diff --git
a/gdb/sparc64-obsd-nat.c
b/gdb/sparc64-obsd-nat.c
index a59fc69c37c168ad52a0ec9ea0ab0c95bbb17754..ee0cfe4b0808a4ae79d6c506b82712cb230be17e 100644
(file)
--- a/
gdb/sparc64-obsd-nat.c
+++ b/
gdb/sparc64-obsd-nat.c
@@
-1,6
+1,6
@@
/* Native-dependent code for OpenBSD/sparc64.
/* Native-dependent code for OpenBSD/sparc64.
- Copyright (C) 2003-201
7
Free Software Foundation, Inc.
+ Copyright (C) 2003-201
9
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-95,20
+95,19
@@
sparc64obsd_supply_pcb (struct regcache *regcache, struct pcb *pcb)
read_memory(pcb->pcb_sp + BIAS - 176 + (11 * 8),
(gdb_byte *)&pcb->pcb_pc, sizeof pcb->pcb_pc);
read_memory(pcb->pcb_sp + BIAS - 176 + (11 * 8),
(gdb_byte *)&pcb->pcb_pc, sizeof pcb->pcb_pc);
- 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);
state = pcb->pcb_pstate << 8 | pcb->pcb_cwp;
state = pcb->pcb_pstate << 8 | pcb->pcb_cwp;
- regcache
_raw_supply (regcache,
SPARC64_STATE_REGNUM, &state);
+ regcache
->raw_supply (
SPARC64_STATE_REGNUM, &state);
sparc_supply_rwindow (regcache, pcb->pcb_sp, -1);
return 1;
}
sparc_supply_rwindow (regcache, pcb->pcb_sp, -1);
return 1;
}
-
\f
-/* Provide a prototype to silence -Wmissing-prototypes. */
-void _initialize_sparc64obsd_nat (void);
+/* Add some extra features to the generic SPARC target. */
+static sparc_target<obsd_nat_target> the_sparc64_obsd_nat_target;
void
_initialize_sparc64obsd_nat (void)
void
_initialize_sparc64obsd_nat (void)
@@
-124,7
+123,7
@@
_initialize_sparc64obsd_nat (void)
sparc_fpregmap = &sparc64_bsd_fpregmap;
/* Add some extra features to the generic SPARC target. */
sparc_fpregmap = &sparc64_bsd_fpregmap;
/* Add some extra features to the generic SPARC target. */
-
obsd_add_target (sparc_target ()
);
+
add_inf_child_target (&the_sparc64_obsd_nat_target
);
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (sparc64obsd_supply_pcb);
/* Support debugging kernel virtual memory images. */
bsd_kvm_add_target (sparc64obsd_supply_pcb);
This page took
0.025568 seconds
and
4
git commands to generate.