[PATCH/SPARC] Fix sizeof(long double) on 32-bit GNU/Linux
Mark Kettenis
kettenis@chello.nl
Sat Nov 15 18:28:00 GMT 2003
[Oops, sent this without a real subject]
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);
More information about the Gdb-patches
mailing list