aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68knbsd-nat.c
diff options
context:
space:
mode:
authorJ.T. Conklin <jtc@acorntoolworks.com>2000-03-29 04:03:56 +0000
committerJ.T. Conklin <jtc@acorntoolworks.com>2000-03-29 04:03:56 +0000
commiteafd4536051603fd5a51c8c6e49a391ed8e6a9d3 (patch)
tree6e09296cd0f2d68112040085ad090afd560a21c5 /gdb/m68knbsd-nat.c
parentdbeb8dbdff9addc7ea2a6f8a918f95690bfe5ee9 (diff)
downloadgdb-eafd4536051603fd5a51c8c6e49a391ed8e6a9d3.zip
gdb-eafd4536051603fd5a51c8c6e49a391ed8e6a9d3.tar.gz
gdb-eafd4536051603fd5a51c8c6e49a391ed8e6a9d3.tar.bz2
2000-03-29 J.T. Conklin <jtc@redback.com>
* i386nbsd-nat.c (fetch_core_registers): Make static. * m68knbsd-nat.c (fetch_core_registers): Make static. (m68knbsd_core_fns, _initialize_m68knbsd_nat): Added.
Diffstat (limited to 'gdb/m68knbsd-nat.c')
-rw-r--r--gdb/m68knbsd-nat.c20
1 files changed, 19 insertions, 1 deletions
diff --git a/gdb/m68knbsd-nat.c b/gdb/m68knbsd-nat.c
index 326a89b..b76dc79 100644
--- a/gdb/m68knbsd-nat.c
+++ b/gdb/m68knbsd-nat.c
@@ -70,7 +70,7 @@ struct md_core
struct fpreg freg;
};
-void
+static void
fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
char *core_reg_sect;
unsigned core_reg_size;
@@ -86,3 +86,21 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, ignore)
memcpy (&registers[REGISTER_BYTE (FP0_REGNUM)],
&core_reg->freg, sizeof (struct fpreg));
}
+
+/* Register that we are able to handle m68knbsd core file formats.
+ FIXME: is this really bfd_target_unknown_flavour? */
+
+static struct core_fns m68knbsd_core_fns =
+{
+ bfd_target_unknown_flavour, /* core_flavour */
+ default_check_format, /* check_format */
+ default_core_sniffer, /* core_sniffer */
+ fetch_core_registers, /* core_read_registers */
+ NULL /* next */
+};
+
+void
+_initialize_m68knbsd_nat ()
+{
+ add_core_fns (&m68knbsd_core_fns);
+}