aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-04-28 21:52:38 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-04-28 21:52:38 +0000
commit6ed7ea50e87eddecb4c6774de0c0fc0f9c503552 (patch)
tree71101c046ab227bc0b35313084317109e6cbdbe8 /gdb/arch-utils.c
parentefc72ef5c00fc2d069b8d5cca7906c8004eca819 (diff)
downloadbinutils-6ed7ea50e87eddecb4c6774de0c0fc0f9c503552.zip
binutils-6ed7ea50e87eddecb4c6774de0c0fc0f9c503552.tar.gz
binutils-6ed7ea50e87eddecb4c6774de0c0fc0f9c503552.tar.bz2
* gdbarch.sh: Remove deprecated_register_byte.
* gdbarch.c, gdbarch.h: Regenerate. * arch-utils.h (generic_register_size, generic_register_byte): Remove. * arch-utils.c (generic_register_size, generic_register_byte): Remove. * regcache.h (regcache_valid_p): Make REGCACHE parameter const. * regcache.c (regcache_valid_p): Allow to query cooked registers in read-only register caches. Make REGCACHE parameter const. (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE. * mi/mi-main.c (old_regs): Remove. (mi_setup_architecture_data, _initialize_mi_main): Remove. (register_changed_p): Reimplement to compare two register caches. (mi_cmd_data_list_changed_registers): Update caller. * mi/mi-main.h (mi_setup_architecture_data): Remove. * mi/mi-interp.c (mi_interpreter_init): Do not call mi_setup_architecture_data.
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index bf93c7b..7b32b06 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -207,32 +207,6 @@ legacy_virtual_frame_pointer (CORE_ADDR pc,
*frame_offset = 0;
}
-/* Assume the world is sane, every register's virtual and real size
- is identical. */
-
-int
-generic_register_size (int regnum)
-{
- gdb_assert (regnum >= 0 && regnum < NUM_REGS + NUM_PSEUDO_REGS);
- return TYPE_LENGTH (register_type (current_gdbarch, regnum));
-}
-
-/* Assume all registers are adjacent. */
-
-int
-generic_register_byte (int regnum)
-{
- int byte;
- int i;
- gdb_assert (regnum >= 0 && regnum < NUM_REGS + NUM_PSEUDO_REGS);
- byte = 0;
- for (i = 0; i < regnum; i++)
- {
- byte += generic_register_size (i);
- }
- return byte;
-}
-
int
generic_convert_register_p (int regnum, struct type *type)