This is the mail archive of the
mailing list for the GDB project.
Re: [patch] Allow "disassemble 'Foo::bar(char *)'"
On Sun, Nov 15, 2009 at 09:16:06AM -0800, Paul Pluzhnikov wrote:
> The only way I can see to allow general expressions here is to require
> a separator which can't happen in any expression in any language
> (semicolon probably comes close), or for parse_expression() to consume
> as much as it can and set a "end_of_parse" indicator.
> But perhaps splitting on comma (after skipping any quoted expression
> -- Foo::bar could have multiple parameters) is "good enough"? That
> would allow 'disas &main + 1, &main + 5' to work.
See parse_to_comma_and_eval (which I always forget about in this
It's not perfect, but it does handle parenthesis nesting.