mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-20 09:58:19 +08:00
* mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
with dynamic size.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Apr 9 19:20:32 1998 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* mips-tdep.c (do_fp_register_row): Use alloca rather than arrays
|
||||||
|
with dynamic size.
|
||||||
|
|
||||||
Wed Apr 8 19:21:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
|
Wed Apr 8 19:21:42 1998 Jason Molenda (crash@bugshack.cygnus.com)
|
||||||
|
|
||||||
* top.c (print_gdb_version): Print 1998 now.
|
* top.c (print_gdb_version): Print 1998 now.
|
||||||
|
@ -1700,14 +1700,18 @@ static int
|
|||||||
do_fp_register_row (regnum)
|
do_fp_register_row (regnum)
|
||||||
int regnum;
|
int regnum;
|
||||||
{ /* do values for FP (float) regs */
|
{ /* do values for FP (float) regs */
|
||||||
char raw_buffer[2] [REGISTER_RAW_SIZE(FP0_REGNUM)];
|
char *raw_buffer[2];
|
||||||
char dbl_buffer[2 * REGISTER_RAW_SIZE(FP0_REGNUM)];
|
char *dbl_buffer;
|
||||||
/* use HI and LO to control the order of combining two flt regs */
|
/* use HI and LO to control the order of combining two flt regs */
|
||||||
int HI = (TARGET_BYTE_ORDER == BIG_ENDIAN);
|
int HI = (TARGET_BYTE_ORDER == BIG_ENDIAN);
|
||||||
int LO = (TARGET_BYTE_ORDER != BIG_ENDIAN);
|
int LO = (TARGET_BYTE_ORDER != BIG_ENDIAN);
|
||||||
double doub, flt1, flt2; /* doubles extracted from raw hex data */
|
double doub, flt1, flt2; /* doubles extracted from raw hex data */
|
||||||
int inv1, inv2, inv3;
|
int inv1, inv2, inv3;
|
||||||
|
|
||||||
|
raw_buffer[0] = (char *) alloca (REGISTER_RAW_SIZE (FP0_REGNUM));
|
||||||
|
raw_buffer[1] = (char *) alloca (REGISTER_RAW_SIZE (FP0_REGNUM));
|
||||||
|
dbl_buffer = (char *) alloca (2 * REGISTER_RAW_SIZE (FP0_REGNUM));
|
||||||
|
|
||||||
/* Get the data in raw format. */
|
/* Get the data in raw format. */
|
||||||
if (read_relative_register_raw_bytes (regnum, raw_buffer[HI]))
|
if (read_relative_register_raw_bytes (regnum, raw_buffer[HI]))
|
||||||
error ("can't read register %d (%s)", regnum, reg_names[regnum]);
|
error ("can't read register %d (%s)", regnum, reg_names[regnum]);
|
||||||
|
Reference in New Issue
Block a user