diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-03-16 20:14:57 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-03-16 20:14:57 +0000 |
commit | 4e259f098d55fa3d6112fb698a9a21ddc8e3a18d (patch) | |
tree | b93162ad9053c06fd15aaf1908984587295dc883 /gdb | |
parent | bbe000010af0faac0766c82edc1d92fac3573c6c (diff) | |
download | binutils-4e259f098d55fa3d6112fb698a9a21ddc8e3a18d.zip binutils-4e259f098d55fa3d6112fb698a9a21ddc8e3a18d.tar.gz binutils-4e259f098d55fa3d6112fb698a9a21ddc8e3a18d.tar.bz2 |
* i386-tdep.c (i386_register_type): Renamed from
i386_register_virtual_type. Adjust function signature.
(i386_gdbarch_init): Set register_type instead of
deprecated_max_register_raw_size,
deprecated_max_register_virtual_size and register_virtual_type.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/i386-tdep.c | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ae39b61..ff19897 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2003-03-16 Mark Kettenis <kettenis@gnu.org> + + * i386-tdep.c (i386_register_type): Renamed from + i386_register_virtual_type. Adjust function signature. + (i386_gdbarch_init): Set register_type instead of + deprecated_max_register_raw_size, + deprecated_max_register_virtual_size and register_virtual_type. + 2003-03-14 Andrew Cagney <cagney@redhat.com> * frame.c (get_prev_frame): When a legacy frame, always call diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index b438266..bb588bf 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1129,7 +1129,7 @@ i386_use_struct_convention (int gcc_p, struct type *type) potentially they could be used for things other than address. */ static struct type * -i386_register_virtual_type (int regnum) +i386_register_type (struct gdbarch *gdbarch, int regnum) { if (regnum == PC_REGNUM || regnum == FP_REGNUM || regnum == SP_REGNUM) return lookup_pointer_type (builtin_type_void); @@ -1558,9 +1558,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_register_name (gdbarch, i386_register_name); set_gdbarch_register_size (gdbarch, 4); set_gdbarch_register_bytes (gdbarch, I386_SIZEOF_GREGS + I386_SIZEOF_FREGS); - set_gdbarch_deprecated_max_register_raw_size (gdbarch, I386_MAX_REGISTER_SIZE); - set_gdbarch_deprecated_max_register_virtual_size (gdbarch, I386_MAX_REGISTER_SIZE); - set_gdbarch_register_virtual_type (gdbarch, i386_register_virtual_type); + set_gdbarch_register_type (gdbarch, i386_register_type); set_gdbarch_print_float_info (gdbarch, i387_print_float_info); |