diff options
Diffstat (limited to 'gdb/mips-nat.c')
-rw-r--r-- | gdb/mips-nat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c index b9d20b7..cf8a31a 100644 --- a/gdb/mips-nat.c +++ b/gdb/mips-nat.c @@ -137,8 +137,9 @@ int get_longjmp_target (CORE_ADDR *pc) { CORE_ADDR jb_addr; - char buf[TARGET_PTR_BIT / TARGET_CHAR_BIT]; + char *buf; + buf = alloca (TARGET_PTR_BIT / TARGET_CHAR_BIT); jb_addr = read_register (A0_REGNUM); if (target_read_memory (jb_addr + JB_PC * JB_ELEMENT_SIZE, buf, |