This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]