mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-01 20:12:01 +08:00
* 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.
This commit is contained in:
@ -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>
|
2007-11-27 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
* Makefile.in (ALL_TARGET_OBS): Remove object files that require
|
* Makefile.in (ALL_TARGET_OBS): Remove object files that require
|
||||||
|
@ -71,7 +71,7 @@ decimal_to_string (const gdb_byte *decbytes, int len, char *s)
|
|||||||
decimal128ToString ((decimal128 *) dec, s);
|
decimal128ToString ((decimal128 *) dec, s);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
error (_("Unknown decimal floating point type.\n"));
|
error (_("Unknown decimal floating point type."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ decimal_from_string (gdb_byte *decbytes, int len, const char *string)
|
|||||||
decimal128FromString ((decimal128 *) dec, string, &set);
|
decimal128FromString ((decimal128 *) dec, string, &set);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
error (_("Unknown decimal floating point type.\n"));
|
error (_("Unknown decimal floating point type."));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2128,7 +2128,7 @@ printf_command (char *arg, int from_tty)
|
|||||||
case decfloat_arg:
|
case decfloat_arg:
|
||||||
{
|
{
|
||||||
char *eos;
|
char *eos;
|
||||||
char decstr[128];
|
char decstr[MAX_DECIMAL_STRING];
|
||||||
unsigned int dfp_len = TYPE_LENGTH (value_type (val_args[i]));
|
unsigned int dfp_len = TYPE_LENGTH (value_type (val_args[i]));
|
||||||
unsigned char *dfp_value_ptr = (unsigned char *) value_contents_all (val_args[i])
|
unsigned char *dfp_value_ptr = (unsigned char *) value_contents_all (val_args[i])
|
||||||
+ value_offset (val_args[i]);
|
+ value_offset (val_args[i]);
|
||||||
|
@ -1652,7 +1652,7 @@ value_from_decfloat (struct type *expect_type, struct type *type,
|
|||||||
if (expect_type)
|
if (expect_type)
|
||||||
{
|
{
|
||||||
int expect_len = TYPE_LENGTH (expect_type);
|
int expect_len = TYPE_LENGTH (expect_type);
|
||||||
char decstr[128];
|
char decstr[MAX_DECIMAL_STRING];
|
||||||
int real_len;
|
int real_len;
|
||||||
|
|
||||||
decimal_to_string (decbytes, len, decstr);
|
decimal_to_string (decbytes, len, decstr);
|
||||||
|
Reference in New Issue
Block a user