diff options
author | Hui Zhu <teawater@gmail.com> | 2011-02-21 08:38:14 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2011-02-21 08:38:14 +0000 |
commit | d0e92d82d87a287847fcd66da278836f7136a3ef (patch) | |
tree | 432a9056a4ff0e356ff223fbe228aedef40ba131 /gdb/ax-gdb.h | |
parent | c0c8b2f268cd3a8735abed708e08aedd2edd26be (diff) | |
download | gdb-d0e92d82d87a287847fcd66da278836f7136a3ef.zip gdb-d0e92d82d87a287847fcd66da278836f7136a3ef.tar.gz gdb-d0e92d82d87a287847fcd66da278836f7136a3ef.tar.bz2 |
2011-02-21 Hui Zhu <teawater@gmail.com>
* Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
* ax-gdb.c (gen_printf_expr_callback): New function.
* ax-gdb.h (gen_printf_expr_callback): Forward declare.
* ax-general.c (ax_memcpy): New function.
(ax_print): Handle "printf".
(ax_reqs): Ditto.
* ax.h (ax_memcpy): Forward declare.
* common/ax.def (invalid2): Removed.
(printf): New entry.
* printcmd.c (printcmd.h): New include.
(string_printf): New function.
(ui_printf): Removed.
(printf_command): Remove static. Call string_printf.
(eval_command): Call string_printf.
* printcmd.h: New file.
* tracepoint.c (validate_actionline,
encode_actions_1): handle printf_command.
Diffstat (limited to 'gdb/ax-gdb.h')
-rw-r--r-- | gdb/ax-gdb.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ax-gdb.h b/gdb/ax-gdb.h index a2367a6..9b15230 100644 --- a/gdb/ax-gdb.h +++ b/gdb/ax-gdb.h @@ -108,6 +108,8 @@ extern struct agent_expr *gen_trace_for_var (CORE_ADDR, struct gdbarch *, extern struct agent_expr *gen_eval_for_expr (CORE_ADDR, struct expression *); +extern void gen_printf_expr_callback (char *, char **, void *, void *); + extern int trace_kludge; #endif /* AX_GDB_H */ |