This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
implementing eval command
- From: "Yakov Lerner" <iler dot ml at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Thu, 14 Feb 2008 18:18:56 +0200
- Subject: implementing eval command
I'd like to make a patch that implements eval command, as follows.
I have following idea to implement eval simply:
Syntax of eval will be similar to the syntax of 'printf' command:
eval "string with %..." comma-separated-expressions
Implementation relies on existing printf_command() function,
by rewriting printf_command into pair of functions, one that computes
result of printf as allocated string; both printf_command and eval_command
will use compute_printf() function.
What do you think ?
Yakov