Add _initialize_armnbsd_nat(), which registers our core file

handlers.  Whee, can fetch registers from core files now.
This commit is contained in:
thorpej 2001-11-20 02:58:31 +00:00
parent 4a4183056d
commit 06cf8784f0
1 changed files with 19 additions and 0 deletions

View File

@ -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 @@ get_longjmp_target (CORE_ADDR *addr)
{
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);
}