Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [hppa-hpux] Core file support for hppa64-hp-hpux11.11
@ 2005-11-17 12:56 Randolph Chung
  2005-11-17 14:46 ` Mark Kettenis
  0 siblings, 1 reply; 8+ messages in thread
From: Randolph Chung @ 2005-11-17 12:56 UTC (permalink / raw)
  To: gdb-patches

[-- Attachment #1: Type: text/plain, Size: 237 bytes --]

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.

randolph

[-- Attachment #2: core.diff --]
[-- Type: text/x-patch, Size: 1244 bytes --]

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;
 
   return GDB_OSABI_UNKNOWN;
 }
@@ -2067,6 +2078,9 @@ _initialize_hppa_hpux_tdep (void)
   gdbarch_register_osabi_sniffer (bfd_arch_unknown,
 				  bfd_target_unknown_flavour,
 				  hppa_hpux_core_osabi_sniffer);
+  gdbarch_register_osabi_sniffer (bfd_arch_hppa,
+                                  bfd_target_elf_flavour,
+				  hppa_hpux_core_osabi_sniffer);
 
   gdbarch_register_osabi (bfd_arch_hppa, 0, GDB_OSABI_HPUX_SOM,
                           hppa_hpux_som_init_abi);

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-11-18 14:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-17 12:56 [hppa-hpux] Core file support for hppa64-hp-hpux11.11 Randolph Chung
2005-11-17 14:46 ` Mark Kettenis
2005-11-17 15:52   ` Randolph Chung
2005-11-17 16:02     ` Mark Kettenis
2005-11-18  3:37       ` Randolph Chung
2005-11-18  4:44         ` Mark Kettenis
2005-11-18 13:49           ` Randolph Chung
2005-11-18 15:30             ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox