aboutsummaryrefslogtreecommitdiff
path: root/gdb/ax-gdb.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-03-01 17:03:19 +0000
committerAndrew Cagney <cagney@redhat.com>2003-03-01 17:03:19 +0000
commit7b83296f2249f4252acecdc5af64595d66daadbd (patch)
treebfa2014356313408862a3df02b7072341a8c5012 /gdb/ax-gdb.c
parent00416c6ed6b354207787df2ac7a6b1e8ad11fece (diff)
downloadgdb-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/ax-gdb.c')
-rw-r--r--gdb/ax-gdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c
index 2536369..5692c35 100644
--- a/gdb/ax-gdb.c
+++ b/gdb/ax-gdb.c
@@ -34,6 +34,7 @@
#include "ax-gdb.h"
#include "gdb_string.h"
#include "block.h"
+#include "regcache.h"
/* To make sense of this file, you should read doc/agentexpr.texi.
Then look at the types and enums in ax-gdb.h. For the code itself,
@@ -1595,7 +1596,7 @@ gen_expr (union exp_element **pc, struct agent_expr *ax,
(*pc) += 3;
value->kind = axs_lvalue_register;
value->u.reg = reg;
- value->type = REGISTER_VIRTUAL_TYPE (reg);
+ value->type = register_type (current_gdbarch, reg);
}
break;