aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2002-02-16 23:09:16 +0000
committerAndrew Cagney <cagney@redhat.com>2002-02-16 23:09:16 +0000
commit17ef5d921164f4f967914d403aa984760f36abee (patch)
treeed883c7ccffb88676f30623153df9c7ceb830225 /gdb
parent5d6e06d90f5ae95b3c39fc367dab6796c156ad4b (diff)
downloadfsf-binutils-gdb-17ef5d921164f4f967914d403aa984760f36abee.zip
fsf-binutils-gdb-17ef5d921164f4f967914d403aa984760f36abee.tar.gz
fsf-binutils-gdb-17ef5d921164f4f967914d403aa984760f36abee.tar.bz2
* gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
* gdbarch.h, gdbarch.c: Re-generate.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/gdbarch.c2
-rw-r--r--gdb/gdbarch.h2
-rwxr-xr-xgdb/gdbarch.sh2
4 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f5dd4fd..be568c9 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2002-02-16 Andrew Cagney <ac131313@redhat.com>
+
+ * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
+ * gdbarch.h, gdbarch.c: Re-generate.
+
2002-02-16 Daniel Jacobowitz <drow@mvista.com>
* valarith.c (value_x_unop): Fix decrement; support post-decrement.
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 09bc8fa..f4000b5 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -451,7 +451,7 @@ gdbarch_alloc (const struct gdbarch_info *info,
current_gdbarch->long_long_bit = 2*TARGET_LONG_BIT;
current_gdbarch->float_bit = 4*TARGET_CHAR_BIT;
current_gdbarch->double_bit = 8*TARGET_CHAR_BIT;
- current_gdbarch->long_double_bit = 2*TARGET_DOUBLE_BIT;
+ current_gdbarch->long_double_bit = 8*TARGET_CHAR_BIT;
current_gdbarch->ptr_bit = TARGET_INT_BIT;
current_gdbarch->bfd_vma_bit = TARGET_ARCHITECTURE->bits_per_address;
current_gdbarch->char_signed = -1;
diff --git a/gdb/gdbarch.h b/gdb/gdbarch.h
index 90e9e62..da5156c 100644
--- a/gdb/gdbarch.h
+++ b/gdb/gdbarch.h
@@ -212,7 +212,7 @@ extern void set_gdbarch_double_bit (struct gdbarch *gdbarch, int double_bit);
/* Default (value) for non- multi-arch platforms. */
#if (!GDB_MULTI_ARCH) && !defined (TARGET_LONG_DOUBLE_BIT)
-#define TARGET_LONG_DOUBLE_BIT (2*TARGET_DOUBLE_BIT)
+#define TARGET_LONG_DOUBLE_BIT (8*TARGET_CHAR_BIT)
#endif
extern int gdbarch_long_double_bit (struct gdbarch *gdbarch);
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index e594834..29aca34 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -393,7 +393,7 @@ v::TARGET_FLOAT_BIT:int:float_bit::::8 * sizeof (float):4*TARGET_CHAR_BIT::0
# Number of bits in a double for the target machine.
v::TARGET_DOUBLE_BIT:int:double_bit::::8 * sizeof (double):8*TARGET_CHAR_BIT::0
# Number of bits in a long double for the target machine.
-v::TARGET_LONG_DOUBLE_BIT:int:long_double_bit::::8 * sizeof (long double):2*TARGET_DOUBLE_BIT::0
+v::TARGET_LONG_DOUBLE_BIT:int:long_double_bit::::8 * sizeof (long double):8*TARGET_CHAR_BIT::0
# For most targets, a pointer on the target and its representation as an
# address in GDB have the same size and "look the same". For such a
# target, you need only set TARGET_PTR_BIT / ptr_bit and TARGET_ADDR_BIT