diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-05-08 18:46:49 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-05-08 18:46:49 +0000 |
commit | 0c92afe8cde4361ee019f661e94e34b363ba24e9 (patch) | |
tree | a89708cba42549fa1c2942b0c9e0c8013389feac /gdb/infcmd.c | |
parent | 6037b8306e768248d2a00de918bfb953fa9d8b24 (diff) | |
download | gdb-0c92afe8cde4361ee019f661e94e34b363ba24e9.zip gdb-0c92afe8cde4361ee019f661e94e34b363ba24e9.tar.gz gdb-0c92afe8cde4361ee019f661e94e34b363ba24e9.tar.bz2 |
2003-05-08 Andrew Cagney <cagney@redhat.com>
* gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
* gdbarch.h: Re-generate.
* defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
(legacy_max_register_virtual_size): Delete declaration.
* infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
* d10v-tdep.c (d10v_print_registers_info): Ditto.
* tracepoint.c (memrange_sortmerge): Ditto.
* sparc-tdep.c (sparc_print_registers): Ditto.
* regcache.c (legacy_max_register_virtual_size): Delete function.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r-- | gdb/infcmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 5867655..de6c319 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1500,8 +1500,8 @@ default_print_registers_info (struct gdbarch *gdbarch, { int i; const int numregs = NUM_REGS + NUM_PSEUDO_REGS; - char *raw_buffer = alloca (MAX_REGISTER_RAW_SIZE); - char *virtual_buffer = alloca (MAX_REGISTER_VIRTUAL_SIZE); + char raw_buffer[MAX_REGISTER_SIZE]; + char virtual_buffer[MAX_REGISTER_SIZE]; if (DEPRECATED_DO_REGISTERS_INFO_P ()) { |