aboutsummaryrefslogtreecommitdiff
path: root/gdb/rom68k-rom.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/rom68k-rom.c')
-rw-r--r--gdb/rom68k-rom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rom68k-rom.c b/gdb/rom68k-rom.c
index c065a87..57c0a18 100644
--- a/gdb/rom68k-rom.c
+++ b/gdb/rom68k-rom.c
@@ -88,7 +88,7 @@ static char *
rom68k_supply_one_register (int regno, unsigned char *hex)
{
ULONGEST value;
- unsigned char regbuf[MAX_REGISTER_RAW_SIZE];
+ unsigned char *regbuf = alloca (max_register_size (current_gdbarch));
value = 0;
while (*hex != '\0')