[patch] Add support for imported declaration and correct search order

Sami Wagiaalla swagiaal@redhat.com
Tue Mar 23 20:51:00 GMT 2010


On 03/23/2010 04:31 PM, Ulrich Weigand wrote:
> Sami Wagiaalla wrote:
>
>>      2010-03-03  Sami Wagiaalla<swagiaal@redhat.com>
>>
>>          * gdb.cp/shadow.exp: Removed kfail; test has been fix.
>
> This test is now failing for me:
>
> print x
> $5 = 55
> (gdb) FAIL: gdb.cp/shadow.exp: Print imported namespace x
>
> (Same value as with GDB 7.1, except the test was KFAILed there ...)
>

I can try to reproduce it. Which compiler are you using ?

> Any suggestions where to look?
>

In lookup_symbol_aux_local the call to cp_lookup_symbol_imports is 
failing so the local variable in the outer block is being found. IIRC 
the import statement was not nested correctly with older compilers so 
that would be my first guess.



More information about the Gdb-patches mailing list