+2008-12-11 Tom Tromey <tromey@redhat.com>
+
+ * macrocmd.c (macro_define_command): Skip whitespace after
+ macro name.
+ (print_one_macro): Print space after macro name.
+
2008-12-12 Pedro Alves <pedro@codesourcery.com>
* infrun.c (handle_inferior_event): Correctly tag non-executing
}
/* Skip the closing paren. */
++exp;
+ skip_ws (&exp);
macro_define_function (macro_main (macro_user_macros), -1, name,
new_macro.argc, (const char **) new_macro.argv,
exp);
}
else
- macro_define_object (macro_main (macro_user_macros), -1, name, exp);
+ {
+ skip_ws (&exp);
+ macro_define_object (macro_main (macro_user_macros), -1, name, exp);
+ }
do_cleanups (cleanup_chain);
}
macro->argv[i]);
fprintf_filtered (gdb_stdout, ")");
}
- /* Note that we don't need a leading space here -- "macro define"
- provided it. */
- fprintf_filtered (gdb_stdout, "%s\n", macro->replacement);
+ fprintf_filtered (gdb_stdout, " %s\n", macro->replacement);
}