mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-24 02:24:46 +08:00
2003-09-10 Elena Zannoni <ezannoni@redhat.com>
* mi-main.c (mi_setup_architecture_data): Don't use DEPRECATED_REGISTER_BYTES because some architecture don't set it and its default is 0.
This commit is contained in:
parent
fde2cceb86
commit
00a9a2c680
@ -1,3 +1,9 @@
|
||||
2003-09-10 Elena Zannoni <ezannoni@redhat.com>
|
||||
|
||||
* mi-main.c (mi_setup_architecture_data): Don't use
|
||||
DEPRECATED_REGISTER_BYTES because some architecture don't set it
|
||||
and its default is 0.
|
||||
|
||||
2003-08-08 Andrew Cagney <cagney@redhat.com>
|
||||
|
||||
* mi-main.c (captured_mi_execute_command): Add "mi2" and "mi3" to
|
||||
|
@ -1478,9 +1478,8 @@ mi_load_progress (const char *section_name,
|
||||
void
|
||||
mi_setup_architecture_data (void)
|
||||
{
|
||||
/* don't trust DEPRECATED_REGISTER_BYTES to be zero. */
|
||||
old_regs = xmalloc (DEPRECATED_REGISTER_BYTES + 1);
|
||||
memset (old_regs, 0, DEPRECATED_REGISTER_BYTES + 1);
|
||||
old_regs = xmalloc ((NUM_REGS + NUM_PSEUDO_REGS) * MAX_REGISTER_SIZE + 1);
|
||||
memset (old_regs, 0, (NUM_REGS + NUM_PSEUDO_REGS) * MAX_REGISTER_SIZE + 1);
|
||||
}
|
||||
|
||||
void
|
||||
|
Loading…
Reference in New Issue
Block a user