This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob:ppc] Zap some unneeded and deprecated arch methods
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 09 Sep 2003 18:13:56 -0400
- Subject: [ob:ppc] Zap some unneeded and deprecated arch methods
Hello,
Back to obvious stuff again.
The two methods:
max_register_raw_size
max_register_virtual_size
aren't needed - replaced by the constant MAX_REGISTER_SIZE.
The method:
register_virtual_size
was being set to its default value (and also isn't needed - computed
from register [virtual] size).
committed,
Andrew
2003-09-09 Andrew Cagney <cagney@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
methods "max_register_raw_size", "max_register_virtual_size" or
"register_virtual_size".
Index: rs6000-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/rs6000-tdep.c,v
retrieving revision 1.152
diff -u -r1.152 rs6000-tdep.c
--- rs6000-tdep.c 9 Sep 2003 20:22:37 -0000 1.152
+++ rs6000-tdep.c 9 Sep 2003 22:01:33 -0000
@@ -2923,9 +2923,6 @@
set_gdbarch_deprecated_register_bytes (gdbarch, off);
set_gdbarch_deprecated_register_byte (gdbarch, rs6000_register_byte);
set_gdbarch_deprecated_register_raw_size (gdbarch, rs6000_register_raw_size);
- set_gdbarch_deprecated_max_register_raw_size (gdbarch, 16);
- set_gdbarch_deprecated_register_virtual_size (gdbarch, generic_register_size);
- set_gdbarch_deprecated_max_register_virtual_size (gdbarch, 16);
set_gdbarch_deprecated_register_virtual_type (gdbarch, rs6000_register_virtual_type);
set_gdbarch_ptr_bit (gdbarch, wordsize * TARGET_CHAR_BIT);