diff options
author | Andrew Cagney <cagney@redhat.com> | 2003-03-01 17:03:19 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2003-03-01 17:03:19 +0000 |
commit | 7b83296f2249f4252acecdc5af64595d66daadbd (patch) | |
tree | bfa2014356313408862a3df02b7072341a8c5012 /gdb/mi | |
parent | 00416c6ed6b354207787df2ac7a6b1e8ad11fece (diff) | |
download | gdb-7b83296f2249f4252acecdc5af64595d66daadbd.zip gdb-7b83296f2249f4252acecdc5af64595d66daadbd.tar.gz gdb-7b83296f2249f4252acecdc5af64595d66daadbd.tar.bz2 |
2003-03-01 Andrew Cagney <cagney@redhat.com>
* 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 <cagney@redhat.com>
* mi-main.c (get_register): Use register_type instead of
REGISTER_VIRTUAL_TYPE.
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/mi/ChangeLog b/gdb/mi/ChangeLog index 6d2f685..a103802 100644 --- a/gdb/mi/ChangeLog +++ b/gdb/mi/ChangeLog @@ -1,3 +1,8 @@ +2003-03-01 Andrew Cagney <cagney@redhat.com> + + * mi-main.c (get_register): Use register_type instead of + REGISTER_VIRTUAL_TYPE. + 2003-02-25 David Carlton <carlton@math.stanford.edu> * mi-cmd-stack.c: Replace all instances of SYMBOL_NAME with diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 8a54108..f08bd3f 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -534,7 +534,8 @@ get_register (int regnum, int format) if (REGISTER_CONVERTIBLE (regnum)) { - REGISTER_CONVERT_TO_VIRTUAL (regnum, REGISTER_VIRTUAL_TYPE (regnum), + REGISTER_CONVERT_TO_VIRTUAL (regnum, + register_type (current_gdbarch, regnum), raw_buffer, virtual_buffer); } else @@ -559,7 +560,7 @@ get_register (int regnum, int format) } else { - val_print (REGISTER_VIRTUAL_TYPE (regnum), virtual_buffer, 0, 0, + val_print (register_type (current_gdbarch, regnum), virtual_buffer, 0, 0, stb->stream, format, 1, 0, Val_pretty_default); ui_out_field_stream (uiout, "value", stb); ui_out_stream_delete (stb); |