diff options
Diffstat (limited to 'gdb/mips-nat.c')
-rw-r--r-- | gdb/mips-nat.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index 43747c0..8d80af4 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -162,7 +162,7 @@ get_longjmp_target(pc) Original upage address X is at location core_reg_sect+x+reg_addr. */ -void +static void fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) char *core_reg_sect; unsigned core_reg_size; @@ -223,3 +223,20 @@ register_addr (regno, blockend) return addr; } + + +/* Register that we are able to handle mips core file formats. + FIXME: is this really bfd_target_unknown_flavour? */ + +static struct core_fns mips_core_fns = +{ + bfd_target_unknown_flavour, + fetch_core_registers, + NULL +}; + +void +_initialize_core_mips () +{ + add_core_fns (&mips_core_fns); +} |