aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386aix-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/i386aix-nat.c')
-rw-r--r--gdb/i386aix-nat.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/i386aix-nat.c b/gdb/i386aix-nat.c
index 2c02ef7..133109e 100644
--- a/gdb/i386aix-nat.c
+++ b/gdb/i386aix-nat.c
@@ -312,7 +312,7 @@ static int core_regmap[] =
CD_DS, CD_ES, CD_FS, CD_GS,
};
-void
+static void
fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
char *core_reg_sect;
unsigned core_reg_size;
@@ -341,3 +341,20 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
fprintf_unfiltered (gdb_stderr, "Couldn't read float regs from core file\n");
}
}
+
+
+/* Register that we are able to handle i386aix core file formats.
+ FIXME: is this really bfd_target_unknown_flavour? */
+
+static struct core_fns i386aix_core_fns =
+{
+ bfd_target_unknown_flavour,
+ fetch_core_registers,
+ NULL
+};
+
+void
+_initialize_core_i386aix ()
+{
+ add_core_fns (&i386aix_core_fns);
+}