[RFA] Anonymous namespaces and linespecs

Eli Zaretskii eliz@gnu.org
Fri May 20 07:26:00 GMT 2011


> Date: Thu, 19 May 2011 15:52:12 -0700
> From: Keith Seitz <keiths@redhat.com>
> 
> (gdb) b 'FOO::(anonymous namespace)::BAR()'
> Junk at end of arguments.
> 
> 
> This is happening because along with the physname patch, there was also 
> alot of mucking around with decode_line_1 and decode_compound. This is 
> fallout from that. [Remember: we used to push almost everything through 
> decode_variable -- in which the quoting is /required/.]
> 
> If we see "(anonymous namespace)", we must keep it as a significant part 
> of the name. On the upside, we now no longer have to quote this stuff, 
> either.

This "(anonymous namespace)" thing is not documented anywhere in the
user manual.  Should it be?



More information about the Gdb-patches mailing list