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.
This commit is contained in:
parent
f32bf4a4c9
commit
175ff332d0
7 changed files with 213 additions and 26 deletions
|
@ -427,6 +427,15 @@ v:int:num_regs:::0:-1
|
|||
# combinations of other registers, or they may be computed by GDB.
|
||||
v:int:num_pseudo_regs:::0:0::0
|
||||
|
||||
# Assemble agent expression bytecode to collect pseudo-register REG.
|
||||
# Return -1 if something goes wrong, 0 otherwise.
|
||||
M:int:ax_pseudo_register_collect:struct agent_expr *ax, int reg:ax, reg
|
||||
|
||||
# Assemble agent expression bytecode to push the value of pseudo-register
|
||||
# REG on the interpreter stack.
|
||||
# Return -1 if something goes wrong, 0 otherwise.
|
||||
M:int:ax_pseudo_register_push_stack:struct agent_expr *ax, int reg:ax, reg
|
||||
|
||||
# GDB's standard (or well known) register numbers. These can map onto
|
||||
# a real register or a pseudo (computed) register or not be defined at
|
||||
# all (-1).
|
||||
|
@ -919,6 +928,7 @@ struct target_desc;
|
|||
struct displaced_step_closure;
|
||||
struct core_regset_section;
|
||||
struct syscall;
|
||||
struct agent_expr;
|
||||
|
||||
/* The architecture associated with the connection to the target.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue