#include "defs.h"
#include "inferior.h"
+#include "gdbcore.h"
#include <sys/time.h>
#include <sys/procfs.h>
typedef unsigned int greg_t; /* why isn't this defined? */
+static void
+fetch_core_registers PARAMS ((char *, unsigned int, int, CORE_ADDR));
+
/*
* See the comment in m68k-tdep.c regarding the utility of these functions.
*/
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;
int which; /* Unused */
- unsigned int reg_addr; /* Unused */
+ CORE_ADDR reg_addr; /* Unused */
{
if (core_reg_size != REGISTER_BYTES)
{
memcpy ((char *)registers, core_reg_sect, core_reg_size);
}
+
+\f
+/* 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);
+}