Re: RFC: fix PR 12707

Tom Tromey
2013-01-18T14:31:07Z

Tom> I expect it will break expression parsing.

Jan> Then it should be fixed but IIRC it works with the linespec parser even
Jan> without quotes.

I don't think we're talking about the same thing.

I was contemplating the change you implied -- adding return types to all
symbols. I think this change would make symbol lookup during expression
parsing fail. In this case one does not include the return type in the
lookup name.

It works ok now precisely because the debug symbols don't include this
information. Here it is without debuginfo:

(gdb) p GDB<char>::even_harder<int> ('a')
No symbol "GDB<char>" in current context.
(gdb) p 'int GDB<char>::even_harder<int>' ('a')
$1 = 97

Tom> I think that would require too much memory for what is really a marginal
Tom> feature.

Jan> I find it an essential feature to be able to break on function where the
Jan> application has crashed, I was using it myself several times for some C++
Jan> application (Firefox probably).

Ok. I'm going to drop this patch.

Tom