* corefile.c (generic_core_file_matches_executable_p): New function.

* libbfd-in.h (generic_core_file_matches_executable_p): Add
        declaration.
        * libbfd.h: Regenerate.
        * hpux-core.c: ANSIfy function declarations and prototypes.
        (thread_section_p): Manually expand bfd_section_name macro
        to make it clear that parameter ABFD is not used.
        (hpux_core_core_file_matches_executable_p): Delete, replaced
        by macro pointing to generic_core_file_matches_executable_p.

        * aix386-core.c: Replace core_file_matches_executable_p null
        implementation by generic_core_file_matches_executable_p by
        using a macro.
        * aix5ppc-core.c: Likewise.
        * cisco-core.c: Likewise.
        * hppabsd-core.c: Likewise.
        * irix-core.c: Likewise.
        * lynx-core.c: Likewise.
        * mach-o.c: Likewise.
        * netbsd-core.c: Likewise.
        * osf-core.c: Likewise.
        * ptrace-core.c: Likewise.
        * sco5-core.c: Likewise.
        * trad-core.c: Likewise.
This commit is contained in:
Joel Brobecker 2005-12-23 10:19:40 +00:00
parent 97938b6077
commit 69d246d933
17 changed files with 125 additions and 140 deletions

View file

@ -42,6 +42,8 @@
OpenBSD/sparc64. */
#define SPARC64_WCOOKIE_OFFSET 832
#define netbsd_core_file_matches_executable_p generic_core_file_matches_executable_p
struct netbsd_core_struct
{
struct core core;
@ -246,14 +248,6 @@ netbsd_core_file_failing_signal (bfd *abfd)
/*return core_signal (abfd);*/
return abfd->tdata.netbsd_core_data->core.c_signo;
}
static bfd_boolean
netbsd_core_file_matches_executable_p (bfd *core_bfd ATTRIBUTE_UNUSED,
bfd *exec_bfd ATTRIBUTE_UNUSED)
{
/* FIXME, We have no way of telling at this point. */
return TRUE;
}
/* If somebody calls any byte-swapping routines, shoot them. */