This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH] Make i386 use register_type
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 16 Mar 2003 21:15:59 +0100 (CET)
- Subject: [PATCH] Make i386 use register_type
Fairly obvious I think.
Committed (to mainline).
Mark
Index: ChangeLog
from Mark Kettenis <kettenis at gnu dot 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.
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.118
diff -u -p -r1.118 i386-tdep.c
--- i386-tdep.c 13 Mar 2003 21:45:40 -0000 1.118
+++ i386-tdep.c 16 Mar 2003 20:13:44 -0000
@@ -1129,7 +1129,7 @@ i386_use_struct_convention (int gcc_p, s
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 i
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);