diff options
Diffstat (limited to 'gdb/dve3900-rom.c')
-rw-r--r-- | gdb/dve3900-rom.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dve3900-rom.c b/gdb/dve3900-rom.c index 96f4501..e7329f8 100644 --- a/gdb/dve3900-rom.c +++ b/gdb/dve3900-rom.c @@ -455,7 +455,7 @@ static void fetch_bitmapped_register (int regno, struct bit_field *bf) { unsigned long val; - unsigned char regbuf[MAX_REGISTER_RAW_SIZE]; + unsigned char *regbuf = alloca (max_register_size (current_gdbarch)); char *regname = NULL; if (regno >= sizeof (r3900_regnames) / sizeof (r3900_regnames[0])) |