diff options
author | Hui Zhu <teawater@gmail.com> | 2010-12-28 16:00:13 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-12-28 16:00:13 +0000 |
commit | 175ff332d0cbd9e522a396be6a990d20fdd0ea07 (patch) | |
tree | 0d2a59ecdf58e2168c518d64a28b39c9508cf699 /gdb/ax-gdb.c | |
parent | f32bf4a4c92412ee5bed6eb3c45cd2733d2465cc (diff) | |
download | gdb-175ff332d0cbd9e522a396be6a990d20fdd0ea07.zip gdb-175ff332d0cbd9e522a396be6a990d20fdd0ea07.tar.gz gdb-175ff332d0cbd9e522a396be6a990d20fdd0ea07.tar.bz2 |
2010-12-28 Hui Zhu <teawater@gmail.com>
* gdbarch.sh (ax_pseudo_register_collect,
ax_pseudo_register_push_stack): new callbacks.
(agent_expr): Forward declare.
* gdbarch.h, gdbarch.c: Regenerate.
* ax-gdb.c (gen_expr): Remove pseudo-register check code.
* ax-general.c (user-regs.h): New include.
(ax_reg): Call gdbarch_ax_pseudo_register_push_stack.
(ax_reg_mask): Call gdbarch_ax_pseudo_register_collect.
* mips-tdep.c (ax.h): New include.
(mips_ax_pseudo_register_collect,
mips_ax_pseudo_register_push_stack): New functions.
(mips_gdbarch_init): Set mips_ax_pseudo_register_collect and
mips_ax_pseudo_register_push_stack.
Diffstat (limited to 'gdb/ax-gdb.c')
-rw-r--r-- | gdb/ax-gdb.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/ax-gdb.c b/gdb/ax-gdb.c index e01f359..ab6b829 100644 --- a/gdb/ax-gdb.c +++ b/gdb/ax-gdb.c @@ -1978,10 +1978,6 @@ gen_expr (struct expression *exp, union exp_element **pc, if (reg == -1) internal_error (__FILE__, __LINE__, _("Register $%s not available"), name); - if (reg >= gdbarch_num_regs (exp->gdbarch)) - error (_("'%s' is a pseudo-register; " - "GDB cannot yet trace pseudoregister contents."), - name); value->kind = axs_lvalue_register; value->u.reg = reg; value->type = register_type (exp->gdbarch, reg); |