aboutsummaryrefslogtreecommitdiff
path: root/gdb/irix4-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/irix4-nat.c')
-rw-r--r--gdb/irix4-nat.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/irix4-nat.c b/gdb/irix4-nat.c
index 3141f10..babd143 100644
--- a/gdb/irix4-nat.c
+++ b/gdb/irix4-nat.c
@@ -157,7 +157,7 @@ get_longjmp_target (pc)
return 1;
}
-void
+static void
fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
char *core_reg_sect;
unsigned core_reg_size;
@@ -172,3 +172,20 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
memcpy ((char *)registers, core_reg_sect, core_reg_size);
}
+
+
+/* Register that we are able to handle irix4 core file formats.
+ FIXME: is this really bfd_target_unknown_flavour? */
+
+static struct core_fns irix4_core_fns =
+{
+ bfd_target_unknown_flavour,
+ fetch_core_registers,
+ NULL
+};
+
+void
+_initialize_core_irix4 ()
+{
+ add_core_fns (&irix4_core_fns);
+}