summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/gdb/ppcobsd-nat.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2004-12-27 14:01:02 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2004-12-27 14:01:02 +0000
commit7cb023cfb07d13fb208030e4352f159f1e2b229d (patch)
tree961c03598dd9430c22e1c634d533db0a08de8999 /gnu/usr.bin/binutils/gdb/ppcobsd-nat.c
parent5b0cde74db4ad7c994ffdca423951b72310dd8cb (diff)
Resolve conflicts for GDB 6.3. Add local patches.
ok deraadt@
Diffstat (limited to 'gnu/usr.bin/binutils/gdb/ppcobsd-nat.c')
-rw-r--r--gnu/usr.bin/binutils/gdb/ppcobsd-nat.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gnu/usr.bin/binutils/gdb/ppcobsd-nat.c b/gnu/usr.bin/binutils/gdb/ppcobsd-nat.c
index 1293b406c65..c36c63f11d8 100644
--- a/gnu/usr.bin/binutils/gdb/ppcobsd-nat.c
+++ b/gnu/usr.bin/binutils/gdb/ppcobsd-nat.c
@@ -19,8 +19,6 @@
Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-#include "nm-bsd.h"
-
#include "defs.h"
#include "inferior.h"
#include "regcache.h"
@@ -30,8 +28,11 @@
#include <sys/ptrace.h>
#include <machine/reg.h>
+#include "ppc-tdep.h"
#include "ppcobsd-tdep.h"
-
+
+/* OpenBSD/powerpc doesn't have PT_GETFPREGS/PT_SETFPREGS like
+ NetBSD/powerpc and FreeBSD/powerpc. */
/* Fetch register REGNUM from the inferior. If REGNUM is -1, do this
for all registers. */
@@ -42,7 +43,7 @@ fetch_inferior_registers (int regnum)
struct reg regs;
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &regs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name ("Couldn't get registers");
ppcobsd_supply_gregset (&ppcobsd_gregset, current_regcache, -1,
@@ -58,14 +59,14 @@ store_inferior_registers (int regnum)
struct reg regs;
if (ptrace (PT_GETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &regs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name ("Couldn't get registers");
ppcobsd_collect_gregset (&ppcobsd_gregset, current_regcache,
regnum, &regs, sizeof regs);
if (ptrace (PT_SETREGS, PIDGET (inferior_ptid),
- (PTRACE_ARG3_TYPE) &regs, 0) == -1)
+ (PTRACE_TYPE_ARG3) &regs, 0) == -1)
perror_with_name ("Couldn't write registers");
}