Bug 120439

Summary: Shadowed variables hide inner-most ones
Product: [Applications] kdevelop Reporter: Vladimir Prus <ghost>
Component: CPP DebuggerAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Vladimir Prus 2006-01-19 11:25:11 UTC
Version:            (using KDE KDE 3.5.0)
Installed from:    Compiled From Sources

Suppose I have this:

   int f = 10;
   {
        int f = 12;
        // some code
   }

When inside local block, KDevelop only shows the value of the *outer* 'f'. That's before on "info locals", gdb first prints inner 'f' and then outer 'f', and outer 'f' overrides the value of the inner one in KDevelop. At the very least, should show only the inner 'f'. I don't see any way to show both, since gdb does not identify variables in any way.
Comment 1 Vladimir Prus 2006-05-23 10:27:10 UTC
This is fixed as part of MI branch merge. We now show the inner-most variable.