diff options
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index 436fa04..47bfe2d 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -249,7 +249,7 @@ exec_one_dummy_insn () target_remove_breakpoint (DUMMY_INSN_ADDR, shadow_contents); } -void +static void fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr) char *core_reg_sect; unsigned core_reg_size; @@ -794,3 +794,18 @@ kernel_u_size () return (sizeof (struct user)); } + +/* Register that we are able to handle rs6000 core file formats. */ + +static struct core_fns rs6000_core_fns = +{ + bfd_target_coff_flavour, + fetch_core_registers, + NULL +}; + +void +_initialize_core_rs6000 () +{ + add_core_fns (&rs6000_core_fns); +} |