diff options
author | Hui Zhu <teawater@gmail.com> | 2010-12-28 16:00:07 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2010-12-28 16:00:07 +0000 |
commit | 4d4d40dc46626e349e4c8ccac3794e526f8d4612 (patch) | |
tree | 20ef30783e61d13b3cb1e4f3d8702d86a1ad4a9a /gdb/gdbarch.sh | |
parent | 696c2599d17f385ce997ce9711c1a4be7c2c0584 (diff) | |
download | gdb-4d4d40dc46626e349e4c8ccac3794e526f8d4612.tar.gz |
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/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index 5b661167123..fe3a8d3deea 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -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. |