From 7b83296f2249f4252acecdc5af64595d66daadbd Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 1 Mar 2003 17:03:19 +0000 Subject: 2003-03-01 Andrew Cagney * Makefile.in (ax-gdb.o): Update dependencies. * ax-gdb.c: Include "regcache.h". (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE. * findvar.c (value_of_register): Ditto. * infcmd.c (default_print_registers_info): Ditto. Index: mi/ChangeLog 2003-03-01 Andrew Cagney * mi-main.c (get_register): Use register_type instead of REGISTER_VIRTUAL_TYPE. --- gdb/infcmd.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 0bdfc6c..19077b4 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -1665,7 +1665,7 @@ default_print_registers_info (struct gdbarch *gdbarch, /* Convert raw data to virtual format if necessary. */ if (REGISTER_CONVERTIBLE (i)) { - REGISTER_CONVERT_TO_VIRTUAL (i, REGISTER_VIRTUAL_TYPE (i), + REGISTER_CONVERT_TO_VIRTUAL (i, register_type (current_gdbarch, i), raw_buffer, virtual_buffer); } else @@ -1676,11 +1676,11 @@ default_print_registers_info (struct gdbarch *gdbarch, /* If virtual format is floating, print it that way, and in raw hex. */ - if (TYPE_CODE (REGISTER_VIRTUAL_TYPE (i)) == TYPE_CODE_FLT) + if (TYPE_CODE (register_type (current_gdbarch, i)) == TYPE_CODE_FLT) { int j; - val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, + val_print (register_type (current_gdbarch, i), virtual_buffer, 0, 0, file, 0, 1, 0, Val_pretty_default); fprintf_filtered (file, "\t(raw 0x"); @@ -1698,14 +1698,14 @@ default_print_registers_info (struct gdbarch *gdbarch, else { /* Print the register in hex. */ - val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, + val_print (register_type (current_gdbarch, i), virtual_buffer, 0, 0, file, 'x', 1, 0, Val_pretty_default); /* If not a vector register, print it also according to its natural format. */ - if (TYPE_VECTOR (REGISTER_VIRTUAL_TYPE (i)) == 0) + if (TYPE_VECTOR (register_type (current_gdbarch, i)) == 0) { fprintf_filtered (file, "\t"); - val_print (REGISTER_VIRTUAL_TYPE (i), virtual_buffer, 0, 0, + val_print (register_type (current_gdbarch, i), virtual_buffer, 0, 0, file, 0, 1, 0, Val_pretty_default); } } -- cgit v1.1