diff options
Diffstat (limited to 'gdb/sparc-nat.c')
-rw-r--r-- | gdb/sparc-nat.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/gdb/sparc-nat.c b/gdb/sparc-nat.c index 7b072cf..10c96a2 100644 --- a/gdb/sparc-nat.c +++ b/gdb/sparc-nat.c @@ -238,7 +238,7 @@ store_inferior_registers (regno) } -void +static void fetch_core_registers (core_reg_sect, core_reg_size, which, ignore) char *core_reg_sect; unsigned core_reg_size; @@ -301,3 +301,20 @@ kernel_u_size () { return (sizeof (struct user)); } + + +/* Register that we are able to handle sparc core file formats. + FIXME: is this really bfd_target_unknown_flavour? */ + +static struct core_fns sparc_core_fns = +{ + bfd_target_unknown_flavour, + fetch_core_registers, + NULL +}; + +void +_initialize_core_sparc () +{ + add_core_fns (&sparc_core_fns); +} |