diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2007-11-27 20:13:12 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2007-11-27 20:13:12 +0000 |
commit | 483ddee9660b85cf4f68053f7af5893563488709 (patch) | |
tree | 3419c89a59f97e3cfec818c56d51508704d85e82 | |
parent | 27a869e52455db99ae8532701a500d127fe5ee46 (diff) | |
download | gdb-483ddee9660b85cf4f68053f7af5893563488709.tar.gz |
* 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.
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/dfp.c | 4 | ||||
-rw-r--r-- | gdb/printcmd.c | 2 | ||||
-rw-r--r-- | gdb/value.c | 2 |
4 files changed, 13 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6dfdde01e80..d69e6523ad3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/dfp.c b/gdb/dfp.c index 67cee138b73..2aadfbd99a6 100644 --- 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; } diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 20957275947..e5311754553 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -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]); diff --git a/gdb/value.c b/gdb/value.c index 89759b8f00a..e29bab7391f 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -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); |