diff options
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index a1451f8..deb501a 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -946,6 +946,7 @@ validate_format (struct format_data fmt, const char *cmdname) static void print_command_1 (const char *exp, int voidprint) { + struct expression *expr; struct cleanup *old_chain = make_cleanup (null_cleanup, NULL); char format = 0; struct value *val; @@ -968,8 +969,6 @@ print_command_1 (const char *exp, int voidprint) if (exp && *exp) { - struct expression *expr; - expr = parse_expression (exp); make_cleanup (free_current_contents, &expr); val = evaluate_expression (expr); |