Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/toolchain/gdb Add _initialize_armnbsd_nat(), which ...



details:   https://anonhg.NetBSD.org/src/rev/7719a5f005a3
branches:  trunk
changeset: 517828:7719a5f005a3
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Tue Nov 20 02:58:31 2001 +0000

description:
Add _initialize_armnbsd_nat(), which registers our core file
handlers.  Whee, can fetch registers from core files now.

diffstat:

 gnu/dist/toolchain/gdb/armnbsd-nat.c |  19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diffs (33 lines):

diff -r 1245c497d5fb -r 7719a5f005a3 gnu/dist/toolchain/gdb/armnbsd-nat.c
--- a/gnu/dist/toolchain/gdb/armnbsd-nat.c      Tue Nov 20 02:41:14 2001 +0000
+++ b/gnu/dist/toolchain/gdb/armnbsd-nat.c      Tue Nov 20 02:58:31 2001 +0000
@@ -27,6 +27,7 @@
 #include <machine/reg.h>
 #include <machine/frame.h>
 #include "inferior.h"
+#include "gdbcore.h"
 
 #define R15_PSR                0xfc000003
 #define R15_PC         0x03fffffc
@@ -127,3 +128,21 @@
 {
   return 0;
 }
+
+/* Register that we are able to handle armnbsd core file formats.
+   FIXME: is this really bfd_target_unknown_flavour? */
+
+static struct core_fns armnbsd_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_armnbsd_nat ()
+{
+  add_core_fns (&armnbsd_core_fns);
+}



Home | Main Index | Thread Index | Old Index