Re: gdb v7.0 - user defined command's document section - space prefixed end

Daniel Jacobowitz
2009-11-13T14:36:16Z

On Fri, Nov 06, 2009 at 08:56:40PM +0300, Vladimir Prus wrote:
> Note that comment has disappeared, but it's not me -- process_next_line is given
> an empty string, presumably because readline is trying to act smart.

It's command_line_input, from top.c. It also does history expansion.
Oh, well... for another day.

This patch is OK. Please include changelogs...

> + if (parse_commands)
> + {
> + /* If commands are parsed, we skip initial spaces. Otherwise,
> + which is the case for Python commands and documentation
> + (see the 'document' command), spaces are preserved. */
> + p = p2;
> + }
>
> if (parse_commands)
> {
>

Want to combine the two if statements?

--
Daniel Jacobowitz
CodeSourcery