diff options
author | Mark Kettenis <kettenis@gnu.org> | 2002-06-16 15:32:09 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2002-06-16 15:32:09 +0000 |
commit | b6197528ed31667d632e5643728a2aa2c0f680f9 (patch) | |
tree | ff2141dbf3079fef9777b1ba2bdb9fb8b6fee229 | |
parent | d663e1cd53f5eed52f1680ae30d7dae3e27ce88e (diff) | |
download | gdb-b6197528ed31667d632e5643728a2aa2c0f680f9.zip gdb-b6197528ed31667d632e5643728a2aa2c0f680f9.tar.gz gdb-b6197528ed31667d632e5643728a2aa2c0f680f9.tar.bz2 |
* config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
REGISTER_CONVERT_TO_RAW): Remove defines.
(i386_register_virtual_type, i386_register_convertible,
i386_register_convert_to_virtual, i386_register_convert_to_raw):
Remove prototypes.
* i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
macros mentioned above.
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/config/i386/tm-i386.h | 28 | ||||
-rw-r--r-- | gdb/i386-tdep.c | 6 |
3 files changed, 15 insertions, 28 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 29ba209..f9ba04d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,14 @@ 2002-06-16 Mark Kettenis <kettenis@gnu.org> + * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE, + REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL, + REGISTER_CONVERT_TO_RAW): Remove defines. + (i386_register_virtual_type, i386_register_convertible, + i386_register_convert_to_virtual, i386_register_convert_to_raw): + Remove prototypes. + * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the + macros mentioned above. + * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define. (i386lynx_saved_pc_after_call): Remove prototype. * i386ly-tdep.c: Include "i386-tdep.h". diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h index 74c465e..8ec3d4d 100644 --- a/gdb/config/i386/tm-i386.h +++ b/gdb/config/i386/tm-i386.h @@ -32,34 +32,6 @@ struct frame_saved_regs; struct value; struct type; -/* Return the GDB type object for the "standard" data type of data in - register REGNUM. */ - -#define REGISTER_VIRTUAL_TYPE(regnum) i386_register_virtual_type (regnum) -extern struct type *i386_register_virtual_type (int regnum); - -/* Return true iff register REGNUM's virtual format is different from - its raw format. */ - -#define REGISTER_CONVERTIBLE(regnum) i386_register_convertible (regnum) -extern int i386_register_convertible (int regnum); - -/* Convert data from raw format for register REGNUM in buffer FROM to - virtual format with type TYPE in buffer TO. */ - -#define REGISTER_CONVERT_TO_VIRTUAL(regnum, type, from, to) \ - i386_register_convert_to_virtual ((regnum), (type), (from), (to)) -extern void i386_register_convert_to_virtual (int regnum, struct type *type, - char *from, char *to); - -/* Convert data from virtual format with type TYPE in buffer FROM to - raw format for register REGNUM in buffer TO. */ - -#define REGISTER_CONVERT_TO_RAW(type, regnum, from, to) \ - i386_register_convert_to_raw ((type), (regnum), (from), (to)) -extern void i386_register_convert_to_raw (struct type *type, int regnum, - char *from, char *to); - /* Print out the i387 floating point state. */ extern void i387_float_info (void); #define FLOAT_INFO { i387_float_info (); } diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index 41c565d..c50059b 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -1413,6 +1413,7 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_register_raw_size (gdbarch, i386_register_raw_size); set_gdbarch_max_register_raw_size (gdbarch, 16); set_gdbarch_max_register_virtual_size (gdbarch, 16); + set_gdbarch_register_virtual_type (gdbarch, i386_register_virtual_type); set_gdbarch_get_longjmp_target (gdbarch, i386_get_longjmp_target); @@ -1431,6 +1432,11 @@ i386_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) set_gdbarch_call_dummy_stack_adjust_p (gdbarch, 0); set_gdbarch_fix_call_dummy (gdbarch, i386_fix_call_dummy); + set_gdbarch_register_convertible (gdbarch, i386_register_convertible); + set_gdbarch_register_convert_to_virtual (gdbarch, + i386_register_convert_to_virtual); + set_gdbarch_register_convert_to_raw (gdbarch, i386_register_convert_to_raw); + set_gdbarch_get_saved_register (gdbarch, generic_get_saved_register); set_gdbarch_push_arguments (gdbarch, i386_push_arguments); |