Bug 120439 - Shadowed variables hide inner-most ones
Summary: Shadowed variables hide inner-most ones
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: CPP Debugger (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-19 11:25 UTC by Vladimir Prus
Modified: 2006-05-23 10:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.