(floatformat_sparc_quad): New define.
(sparc32_gdbarch_init): Set long_double_format to
&floatformat_sparc_quad.
* sparc-linux-tdep.c: Include "floatformat.h".
(sparc32_linux_init_abi): Set long_double_format to
&floatformat_ieee_double_big.
* sparcnbsd-tdep.c: Likewise.
2003-12-31 Mark Kettenis <kettenis@gnu.org>
+ * sparc-tdep.c: Include "floatformat.h".
+ (floatformat_sparc_quad): New define.
+ (sparc32_gdbarch_init): Set long_double_format to
+ &floatformat_sparc_quad.
+ * sparc-linux-tdep.c: Include "floatformat.h".
+ (sparc32_linux_init_abi): Set long_double_format to
+ &floatformat_ieee_double_big.
+ * sparcnbsd-tdep.c: Likewise.
+
* sparc-tdep.c (sparc_stabs_unglobalize_name): New function.
* config/sparc/tm-sol2.h (SOFUN_ADDRESS_MAYBE_MISSING): Define.
(sparc_stabs_unglobalize_name): New prototype.
Boston, MA 02111-1307, USA. */
#include "defs.h"
+#include "floatformat.h"
#include "frame.h"
#include "frame-base.h"
#include "frame-unwind.h"
/* GNU/Linux doesn't support the 128-bit `long double' from the psABI. */
set_gdbarch_long_double_bit (gdbarch, 64);
+ set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
set_gdbarch_pc_in_sigtramp (gdbarch, sparc32_linux_pc_in_sigtramp);
frame_unwind_append_sniffer (gdbarch, sparc32_linux_sigtramp_frame_sniffer);
#include "defs.h"
#include "arch-utils.h"
#include "dis-asm.h"
+#include "floatformat.h"
#include "frame.h"
#include "frame-base.h"
#include "frame-unwind.h"
code that can handle both. The 64-bit specific code lives in
sparc64-tdep.c; don't add any here. */
+/* The SPARC Floating-Point Quad-Precision format is similar to
+ big-endian IA-64 Quad-recision format. */
+#define floatformat_sparc_quad floatformat_ia64_quad_big
+
/* The stack pointer is offset from the stack frame by a BIAS of 2047
(0x7ff) for 64-bit code. BIAS is likely to be defined on SPARC
hosts, so undefine it first. */
tdep->plt_entry_size = 0;
set_gdbarch_long_double_bit (gdbarch, 128);
+ set_gdbarch_long_double_format (gdbarch, &floatformat_sparc_quad);
set_gdbarch_num_regs (gdbarch, SPARC32_NUM_REGS);
set_gdbarch_register_name (gdbarch, sparc32_register_name);
Boston, MA 02111-1307, USA. */
#include "defs.h"
+#include "floatformat.h"
#include "frame.h"
#include "frame-unwind.h"
#include "gdbcore.h"
{
/* NetBSD doesn't support the 128-bit `long double' from the psABI. */
set_gdbarch_long_double_bit (gdbarch, 64);
+ set_gdbarch_long_double_format (gdbarch, &floatformat_ieee_double_big);
set_gdbarch_pc_in_sigtramp (gdbarch, sparc32nbsd_pc_in_sigtramp);
frame_unwind_append_sniffer (gdbarch, sparc32nbsd_sigtramp_frame_sniffer);