* gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
authorAndrew Cagney <cagney@redhat.com>
Sun, 10 Feb 2002 02:47:12 +0000 (02:47 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sun, 10 Feb 2002 02:47:12 +0000 (02:47 +0000)
default_double_format.
* gdbarch.h, gdbarch.c: Re-generate.
* findvar.c (floatformat_unknown): Delete variable definition.
* doublest.h (floatformat_unknown): Delete variable declaration.

gdb/ChangeLog
gdb/doublest.h
gdb/findvar.c
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh

index 63f9662116fd0715187f5fcbf31d879597cc4f3e..cc14e1f8efffc80563a1dcc897af2a563f3b6954 100644 (file)
@@ -1,3 +1,11 @@
+2002-02-09  Andrew Cagney  <ac131313@redhat.com>
+
+       * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
+       default_double_format.
+       * gdbarch.h, gdbarch.c: Re-generate.
+       * findvar.c (floatformat_unknown): Delete variable definition.
+       * doublest.h (floatformat_unknown): Delete variable declaration.
+
 2002-02-09  Jim Blandy  <jimb@redhat.com>
 
        * stabsread.c (read_type): Add code to parse Sun's syntax for
index 0beeb9ba5c7e3519d2fbd0b6f3d9fff3d4ab97ea..920d7026db4fe74d9307de4a5debbbf40586133e 100644 (file)
@@ -35,8 +35,6 @@
 
 #include "floatformat.h"       /* For struct floatformat */
 
-extern const struct floatformat floatformat_unknown;
-
 /* Use `long double' if the host compiler supports it.  (Note that this is not
    necessarily any longer than `double'.  On SunOS/gcc, it's the same as
    double.)  This is necessary because GDB internally converts all floating
index c7b2a63d331f29aa26ff690b82fa3a5dc99ade83..3a160a3597b802336e808787ab17c348468f2dab 100644 (file)
 #include "symfile.h"           /* for overlay functions */
 #include "regcache.h"
 
-/* This is used to indicate that we don't know the format of the floating point
-   number.  Typically, this is useful for native ports, where the actual format
-   is irrelevant, since no conversions will be taking place.  */
-
-const struct floatformat floatformat_unknown;
-
 /* Basic byte-swapping routines.  GDB has needed these for a long time...
    All extract a target-format integer at ADDR which is LEN bytes long.  */
 
index 25824b8d9756c4570cc33148338267acd5285a8e..1493c00cf8346751cadc09338ab0e36a26978890 100644 (file)
@@ -767,7 +767,7 @@ verify_gdbarch (struct gdbarch *gdbarch)
   if (gdbarch->double_format == 0)
     gdbarch->double_format = default_double_format (gdbarch);
   if (gdbarch->long_double_format == 0)
-    gdbarch->long_double_format = &floatformat_unknown;
+    gdbarch->long_double_format = default_double_format (gdbarch);
   /* Skip verify of convert_from_func_ptr_addr, invalid_p == 0 */
   /* Skip verify of addr_bits_remove, invalid_p == 0 */
   /* Skip verify of smash_text_address, invalid_p == 0 */
index ffde4df6f42aa7094c0a28538a186c6ce0b74aef..f03882ad76c26cf9f8d05974752427e6114e19fe 100644 (file)
@@ -2000,7 +2000,7 @@ extern void set_gdbarch_double_format (struct gdbarch *gdbarch, const struct flo
 
 /* Default (value) for non- multi-arch platforms. */
 #if (!GDB_MULTI_ARCH) && !defined (TARGET_LONG_DOUBLE_FORMAT)
-#define TARGET_LONG_DOUBLE_FORMAT (&floatformat_unknown)
+#define TARGET_LONG_DOUBLE_FORMAT (default_double_format (current_gdbarch))
 #endif
 
 extern const struct floatformat * gdbarch_long_double_format (struct gdbarch *gdbarch);
index 78cc24eababa27200b3732ca68537813096eb8b1..12c84745bc8551f743b2a6494f1eceb05e3a7118 100755 (executable)
@@ -541,7 +541,7 @@ v:2:PARM_BOUNDARY:int:parm_boundary
 #
 v:2:TARGET_FLOAT_FORMAT:const struct floatformat *:float_format::::::default_float_format (gdbarch)
 v:2:TARGET_DOUBLE_FORMAT:const struct floatformat *:double_format::::::default_double_format (gdbarch)
-v:2:TARGET_LONG_DOUBLE_FORMAT:const struct floatformat *:long_double_format::::::&floatformat_unknown
+v:2:TARGET_LONG_DOUBLE_FORMAT:const struct floatformat *:long_double_format::::::default_double_format (gdbarch)
 f:2:CONVERT_FROM_FUNC_PTR_ADDR:CORE_ADDR:convert_from_func_ptr_addr:CORE_ADDR addr:addr:::core_addr_identity::0
 # On some machines there are bits in addresses which are not really
 # part of the address, but are used by the kernel, the hardware, etc.
This page took 0.034275 seconds and 4 git commands to generate.