This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH/SPARC]
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sat, 15 Nov 2003 19:18:19 +0100 (CET)
- Subject: [PATCH/SPARC]
So 32-bit GNU/Linux doesn't implement the low-level psABI correctly.
Committed to the SPARC branch.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* sparc-linux-tdep.c (sparc32_linux_init_abi): Set long_double_bit
to 64.
Index: sparc-linux-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/Attic/sparc-linux-tdep.c,v
retrieving revision 1.1.2.4
diff -u -p -r1.1.2.4 sparc-linux-tdep.c
--- sparc-linux-tdep.c 15 Nov 2003 13:42:20 -0000 1.1.2.4
+++ sparc-linux-tdep.c 15 Nov 2003 18:16:28 -0000
@@ -289,6 +289,9 @@ sparc32_linux_init_abi (struct gdbarch_i
/* ... but doesn't have kernel-assisted single-stepping support. */
set_gdbarch_software_single_step (gdbarch, sparc_software_single_step);
+ /* GNU/Linux doesn't support the 128-bit `long double' from the psABI. */
+ set_gdbarch_long_double_bit (gdbarch, 64);
+
set_gdbarch_pc_in_sigtramp (gdbarch, sparc32_linux_pc_in_sigtramp);
frame_unwind_append_sniffer (gdbarch, sparc32_linux_sigtramp_frame_sniffer);