diff options
Diffstat (limited to 'gdb/thread-db.c')
-rw-r--r-- | gdb/thread-db.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/thread-db.c b/gdb/thread-db.c index fbb018b..808c295 100644 --- a/gdb/thread-db.c +++ b/gdb/thread-db.c @@ -941,7 +941,7 @@ thread_db_store_registers (int regno) if (regno != -1) { - char raw[MAX_REGISTER_RAW_SIZE]; + char *raw = alloca (max_register_size (current_gdbarch)); deprecated_read_register_gen (regno, raw); thread_db_fetch_registers (-1); |