summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-03 14:39:27 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1997-07-03 14:39:27 +0000
commitb1877b1cb8da2c0d5f06a339e578fce54124b0b4 (patch)
tree08b654ed3b0dfa786816006f97e7c462052b6b3e /gnu/usr.bin/binutils
parentf4169a2a116c1cb827bb8d82027319c014ee18e4 (diff)
support coredump parsing on alpha
Diffstat (limited to 'gnu/usr.bin/binutils')
-rw-r--r--gnu/usr.bin/binutils/bfd/configure1
-rw-r--r--gnu/usr.bin/binutils/bfd/configure.in1
-rw-r--r--gnu/usr.bin/binutils/bfd/targets.c4
-rw-r--r--gnu/usr.bin/binutils/gdb/alphaobsd-nat.c15
4 files changed, 21 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/bfd/configure b/gnu/usr.bin/binutils/bfd/configure
index 2bc9946b426..55d4e93a6bd 100644
--- a/gnu/usr.bin/binutils/bfd/configure
+++ b/gnu/usr.bin/binutils/bfd/configure
@@ -1592,6 +1592,7 @@ EOF
;;
alpha*-*-openbsd*)
COREFILE=netbsd-core.o
+ COREFLAG=-DNETBSD_CORE
;;
alpha*-*-*) COREFILE=osf-core.o ;;
arm-*-riscix) COREFILE=trad-core.o ;;
diff --git a/gnu/usr.bin/binutils/bfd/configure.in b/gnu/usr.bin/binutils/bfd/configure.in
index de87fc68596..e056af0134c 100644
--- a/gnu/usr.bin/binutils/bfd/configure.in
+++ b/gnu/usr.bin/binutils/bfd/configure.in
@@ -315,6 +315,7 @@ changequote([,])dnl
;;
sparc-*-openbsd*)
COREFILE=netbsd-core.o
+ COREFLAG=-DNETBSD_CORE
;;
tahoe-*-*)
COREFILE=trad-core.o
diff --git a/gnu/usr.bin/binutils/bfd/targets.c b/gnu/usr.bin/binutils/bfd/targets.c
index 728cdb32bf4..c33e41dc2ec 100644
--- a/gnu/usr.bin/binutils/bfd/targets.c
+++ b/gnu/usr.bin/binutils/bfd/targets.c
@@ -591,6 +591,7 @@ extern const bfd_target cisco_core_vec;
extern const bfd_target hpux_core_vec;
extern const bfd_target hppabsd_core_vec;
extern const bfd_target irix_core_vec;
+extern const bfd_target netbsd_core_vec;
extern const bfd_target osf_core_vec;
extern const bfd_target sco_core_vec;
extern const bfd_target trad_core_vec;
@@ -798,6 +799,9 @@ const bfd_target * const bfd_target_vector[] = {
#ifdef IRIX_CORE
&irix_core_vec,
#endif
+#ifdef NETBSD_CORE
+ &netbsd_core_vec,
+#endif
#ifdef OSF_CORE
&osf_core_vec,
#endif
diff --git a/gnu/usr.bin/binutils/gdb/alphaobsd-nat.c b/gnu/usr.bin/binutils/gdb/alphaobsd-nat.c
index 128faa10161..734de850fa2 100644
--- a/gnu/usr.bin/binutils/gdb/alphaobsd-nat.c
+++ b/gnu/usr.bin/binutils/gdb/alphaobsd-nat.c
@@ -266,3 +266,18 @@ child_resume (pid, step, signal)
if (errno)
perror_with_name ("ptrace");
}
+
+/* Register that we are able to handle alpha core file formats. */
+
+static struct core_fns alpha_core_fns =
+{
+ bfd_target_coff_flavour,
+ fetch_core_registers,
+ NULL
+};
+
+void
+_initialize_core_alpha ()
+{
+ add_core_fns (&alpha_core_fns);
+}