This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [hppa-hpux] Core file support for hppa64-hp-hpux11.11
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: randolph at tausq dot org
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 17 Nov 2005 13:44:09 +0100 (CET)
- Subject: Re: [hppa-hpux] Core file support for hppa64-hp-hpux11.11
- References: <437C76DE.5020108@tausq.org>
> Date: Thu, 17 Nov 2005 20:26:06 +0800
> From: Randolph Chung <randolph@tausq.org>
>
> Together with http://sourceware.org/ml/binutils/2005-11/msg00269.html,
> the following patch adds support for corefiles to hppa64-hp-hpux11.11.
> This should fix corefiles/2026
>
> I'll check this in once the bfd bits are approved.
>
> 2005-11-17 Randolph Chung <tausq@debian.org>
>
> PR corefiles/2026
> * hppa-hpux-tdep.c (hppa_hpux_core_osabi_sniffer): Recognize core
> files generated by hppa64-hp-hpux*
> (_initialize_hppa_hpux_tdep): Likewise.
>
> Index: hppa-hpux-tdep.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/hppa-hpux-tdep.c,v
> retrieving revision 1.43
> diff -u -p -r1.43 hppa-hpux-tdep.c
> --- hppa-hpux-tdep.c 29 Oct 2005 21:31:45 -0000 1.43
> +++ hppa-hpux-tdep.c 17 Nov 2005 12:18:56 -0000
> @@ -2055,6 +2064,8 @@ hppa_hpux_core_osabi_sniffer (bfd *abfd)
> {
> if (strcmp (bfd_get_target (abfd), "hpux-core") == 0)
> return GDB_OSABI_HPUX_SOM;
> + else if (strcmp (bfd_get_target (abfd), "elf64-hppa") == 0)
> + return GDB_OSABI_HPUX_ELF;
Don't think this is right. Is it needed at all? If it is, then we
should try to do this differently. The mere fact that the BFD target
is elf64-hppa doesn't imply that this is a HP-UX ELF core file does it?
Mark