* dfp.c (decimal_from_string): Remove superfluous newline from
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Tue, 27 Nov 2007 20:13:12 +0000 (20:13 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Tue, 27 Nov 2007 20:13:12 +0000 (20:13 +0000)
error string.
(decimal_to_string): Likewise.
* printcmd.c (printf_command): Change string buffer to use
MAX_DECIMAL_STRING constant.
* value.c (value_from_decfloat): Likewise.

gdb/ChangeLog
gdb/dfp.c
gdb/printcmd.c
gdb/value.c

index 6dfdde01e8051626f7e704ae2acc77ab70824e2b..d69e6523ad3196426694331b85d5e93b83878edc 100644 (file)
@@ -1,3 +1,12 @@
+2007-11-27  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * dfp.c (decimal_from_string): Remove superfluous newline from
+       error string.
+       (decimal_to_string): Likewise.
+       * printcmd.c (printf_command): Change string buffer to use
+       MAX_DECIMAL_STRING constant.
+       * value.c (value_from_decfloat): Likewise.
+
 2007-11-27  Ulrich Weigand  <uweigand@de.ibm.com>
 
        * Makefile.in (ALL_TARGET_OBS): Remove object files that require
index 67cee138b730700cb940f4a0f999e722de3d05d3..2aadfbd99a6dda270e5807460cd660c4430860a5 100644 (file)
--- a/gdb/dfp.c
+++ b/gdb/dfp.c
@@ -71,7 +71,7 @@ decimal_to_string (const gdb_byte *decbytes, int len, char *s)
        decimal128ToString ((decimal128 *) dec, s);
        break;
       default:
-       error (_("Unknown decimal floating point type.\n"));
+       error (_("Unknown decimal floating point type."));
        break;
     }
 }
@@ -103,7 +103,7 @@ decimal_from_string (gdb_byte *decbytes, int len, const char *string)
        decimal128FromString ((decimal128 *) dec, string, &set);
        break;
       default:
-       error (_("Unknown decimal floating point type.\n"));
+       error (_("Unknown decimal floating point type."));
        break;
     }
 
index 209572759470e92aeafcd7a35919660a3e0e95d3..e531175455399a311ac84e6c7bfab9723ad076f7 100644 (file)
@@ -2128,7 +2128,7 @@ printf_command (char *arg, int from_tty)
          case decfloat_arg:
            {
              char *eos;
-             char decstr[128];
+             char decstr[MAX_DECIMAL_STRING];
              unsigned int dfp_len = TYPE_LENGTH (value_type (val_args[i]));
              unsigned char *dfp_value_ptr = (unsigned char *) value_contents_all (val_args[i])
                                       + value_offset (val_args[i]);
index 89759b8f00ab30b2a45cf786d65201f3384d4801..e29bab7391f7f289a4037aa15f7a97ebb96b7491 100644 (file)
@@ -1652,7 +1652,7 @@ value_from_decfloat (struct type *expect_type, struct type *type,
   if (expect_type)
     {
       int expect_len = TYPE_LENGTH (expect_type);
-      char decstr[128];
+      char decstr[MAX_DECIMAL_STRING];
       int real_len;
 
       decimal_to_string (decbytes, len, decstr);
This page took 0.033058 seconds and 4 git commands to generate.