This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: implement ambiguous linespec proposal
On 11/17/2011 12:44 AM, Tom Tromey wrote:
> Yao> I'll debug this problem tomorrow, but if you have any clues, that will
> Yao> be helpful.
>
> Tom> What is mysterious is that I do not see this failure.
> Tom> I actually think this test should fail, because it is applying a
> Tom> condition in a scope where there is no variable 'a'.
>
> Tom> I will debug it today.
>
> Ok, I found the problem. "a" is defined in a system library for which I
> have debuginfo installed:
>
> (top-gdb) p *sym.symtab
OOC, could you give me a stack backtrace here?
> $22 = {
> [...]
> filename = 0x26ba950 "../sysdeps/ieee754/dbl-64/atnat.h",
> dirname = 0x26c4f10 "/usr/src/debug/glibc-2.14-34-ge2a3090/math",
>
> So the condition erroneously parses.
>
That is great!
> Changing the names to "a_param" instead makes it fail again.
>
> I think the test is bogus, though, so I changed it in a way that will
> make it succeed.
>
Agreed.
> I can send a new revision of everything if you want.
No, I don't.
--
Yao (éå)