gdb/ChangeLog
2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
* printcmd.c (print_command_1): Move expr variable scope.
+2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Code cleanup.
+ * printcmd.c (print_command_1): Move expr variable scope.
+
2015-03-26 Jan Kratochvil <jan.kratochvil@redhat.com>
Code cleanup.
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;
if (exp && *exp)
{
+ struct expression *expr;
+
expr = parse_expression (exp);
make_cleanup (free_current_contents, &expr);
val = evaluate_expression (expr);