gdb/
2015-03-05 Mark Kettenis <kettenis@gnu.org>
* hppabsd-nat.c: Remove file.
* hppaobsd-nat.c: New file.
* Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
hppaobsd-nat.c.
* config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
hppaobsd-nat.o.
+2015-03-05 Mark Kettenis <kettenis@gnu.org>
+
+ * hppabsd-nat.c: Remove file.
+ * hppaobsd-nat.c: New file.
+ * Makefile.in (ALLDEPFILES): Remove hppabsd-nat.c. Add
+ hppaobsd-nat.c.
+ * config/pa/obsd.mh (NATDEPFILES): Replace hppabsd-nat.o with
+ hppaobsd-nat.o.
+
2015-03-04 Pedro Alves <palves@redhat.com>
* target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
2015-03-04 Pedro Alves <palves@redhat.com>
* target.h (struct target_ops) <to_decr_pc_after_break>: Delete.
go32-nat.c h8300-tdep.c \
hppa-tdep.c hppa-hpux-tdep.c hppa-hpux-nat.c \
hppa-linux-tdep.c hppa-linux-nat.c \
go32-nat.c h8300-tdep.c \
hppa-tdep.c hppa-hpux-tdep.c hppa-hpux-nat.c \
hppa-linux-tdep.c hppa-linux-nat.c \
- hppabsd-nat.c hppabsd-tdep.c \
- hppaobsd-tdep.c \
hppanbsd-nat.c hppanbsd-tdep.c \
hppanbsd-nat.c hppanbsd-tdep.c \
+ hppaobsd-nat.c hppaobsd-tdep.c \
i386-tdep.c i386-linux-nat.c \
i386v4-nat.c i386-cygwin-tdep.c \
i386bsd-nat.c i386bsd-tdep.c i386fbsd-nat.c i386fbsd-tdep.c \
i386-tdep.c i386-linux-nat.c \
i386v4-nat.c i386-cygwin-tdep.c \
i386bsd-nat.c i386bsd-tdep.c i386fbsd-nat.c i386fbsd-tdep.c \
-NATDEPFILES= fork-child.o inf-ptrace.o hppabsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o hppaobsd-nat.o
-/* Native-dependent code for HP PA-RISC BSD's.
+/* Native-dependent code for OpenBSD/hppa.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
Copyright (C) 2004-2015 Free Software Foundation, Inc.
#include "hppa-tdep.h"
#include "inf-ptrace.h"
#include "hppa-tdep.h"
#include "inf-ptrace.h"
-hppabsd_gregset_supplies_p (int regnum)
+hppaobsd_gregset_supplies_p (int regnum)
{
return (regnum >= HPPA_R0_REGNUM && regnum <= HPPA_CR27_REGNUM);
}
static int
{
return (regnum >= HPPA_R0_REGNUM && regnum <= HPPA_CR27_REGNUM);
}
static int
-hppabsd_fpregset_supplies_p (int regnum)
+hppaobsd_fpregset_supplies_p (int regnum)
{
return (regnum >= HPPA_FP0_REGNUM && regnum <= HPPA_FP31R_REGNUM);
}
{
return (regnum >= HPPA_FP0_REGNUM && regnum <= HPPA_FP31R_REGNUM);
}
/* Supply the general-purpose registers stored in GREGS to REGCACHE. */
static void
/* Supply the general-purpose registers stored in GREGS to REGCACHE. */
static void
-hppabsd_supply_gregset (struct regcache *regcache, const void *gregs)
+hppaobsd_supply_gregset (struct regcache *regcache, const void *gregs)
{
gdb_byte zero[4] = { 0 };
const char *regs = gregs;
{
gdb_byte zero[4] = { 0 };
const char *regs = gregs;
/* Supply the floating-point registers stored in FPREGS to REGCACHE. */
static void
/* Supply the floating-point registers stored in FPREGS to REGCACHE. */
static void
-hppabsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
+hppaobsd_supply_fpregset (struct regcache *regcache, const void *fpregs)
{
const char *regs = fpregs;
int regnum;
{
const char *regs = fpregs;
int regnum;
-hppabsd_collect_gregset (const struct regcache *regcache,
+hppaobsd_collect_gregset (const struct regcache *regcache,
void *gregs, int regnum)
{
char *regs = gregs;
void *gregs, int regnum)
{
char *regs = gregs;
in FPREGS. */
static void
in FPREGS. */
static void
-hppabsd_collect_fpregset (struct regcache *regcache,
- void *fpregs, int regnum)
+hppaobsd_collect_fpregset (struct regcache *regcache,
+ void *fpregs, int regnum)
{
char *regs = fpregs;
int i;
{
char *regs = fpregs;
int i;
for all registers (including the floating-point registers). */
static void
for all registers (including the floating-point registers). */
static void
-hppabsd_fetch_registers (struct target_ops *ops,
- struct regcache *regcache, int regnum)
+hppaobsd_fetch_registers (struct target_ops *ops,
+ struct regcache *regcache, int regnum)
- if (regnum == -1 || hppabsd_gregset_supplies_p (regnum))
+ if (regnum == -1 || hppaobsd_gregset_supplies_p (regnum))
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't get registers"));
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't get registers"));
- hppabsd_supply_gregset (regcache, ®s);
+ hppaobsd_supply_gregset (regcache, ®s);
- if (regnum == -1 || hppabsd_fpregset_supplies_p (regnum))
+ if (regnum == -1 || hppaobsd_fpregset_supplies_p (regnum))
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name (_("Couldn't get floating point status"));
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name (_("Couldn't get floating point status"));
- hppabsd_supply_fpregset (regcache, &fpregs);
+ hppaobsd_supply_fpregset (regcache, &fpregs);
this for all registers (including the floating-point registers). */
static void
this for all registers (including the floating-point registers). */
static void
-hppabsd_store_registers (struct target_ops *ops,
- struct regcache *regcache, int regnum)
+hppaobsd_store_registers (struct target_ops *ops,
+ struct regcache *regcache, int regnum)
- if (regnum == -1 || hppabsd_gregset_supplies_p (regnum))
+ if (regnum == -1 || hppaobsd_gregset_supplies_p (regnum))
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't get registers"));
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't get registers"));
- hppabsd_collect_gregset (regcache, ®s, regnum);
+ hppaobsd_collect_gregset (regcache, ®s, regnum);
if (ptrace (PT_SETREGS, ptid_get_pid (inferior_ptid),
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't write registers"));
}
if (ptrace (PT_SETREGS, ptid_get_pid (inferior_ptid),
(PTRACE_TYPE_ARG3) ®s, 0) == -1)
perror_with_name (_("Couldn't write registers"));
}
- if (regnum == -1 || hppabsd_fpregset_supplies_p (regnum))
+ if (regnum == -1 || hppaobsd_fpregset_supplies_p (regnum))
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name (_("Couldn't get floating point status"));
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
perror_with_name (_("Couldn't get floating point status"));
- hppabsd_collect_fpregset (regcache, &fpregs, regnum);
+ hppaobsd_collect_fpregset (regcache, &fpregs, regnum);
if (ptrace (PT_SETFPREGS, ptid_get_pid (inferior_ptid),
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
if (ptrace (PT_SETFPREGS, ptid_get_pid (inferior_ptid),
(PTRACE_TYPE_ARG3) &fpregs, 0) == -1)
}
/* Provide a prototype to silence -Wmissing-prototypes. */
}
/* Provide a prototype to silence -Wmissing-prototypes. */
-void _initialize_hppabsd_nat (void);
+void _initialize_hppaobsd_nat (void);
-_initialize_hppabsd_nat (void)
+_initialize_hppaobsd_nat (void)
- /* Add in local overrides. */
t = inf_ptrace_target ();
t = inf_ptrace_target ();
- t->to_fetch_registers = hppabsd_fetch_registers;
- t->to_store_registers = hppabsd_store_registers;
- add_target (t);
+ t->to_fetch_registers = hppaobsd_fetch_registers;
+ t->to_store_registers = hppaobsd_store_registers;
+ obsd_add_target (t);