This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Changed variable value is set to variable with the same name in another frame | ||
---|---|---|---|
Product: | cnd | Reporter: | Egor Ushakov <gorrus> |
Component: | Debugger | Assignee: | Egor Ushakov <gorrus> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | apepin, mmirilovic, vv159170 |
Priority: | P1 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Egor Ushakov
2011-03-24 17:37:13 UTC
could be reproduced only if we have structure variables named the same in different frames there is a consequence for simple types: void foo() { int x = 5; x++; x--; } int main(int argc, char**argv) { int x = 2; foo(); return 0; } here if we change value of x inside foo it will be changed in main This is a showstopper as a debugger breaks the expected way of execution. Does this bug has the same root cause as #196846 ? no, they are different fixed in trunk: http://hg.netbeans.org/cnd-main/rev/1333130a00c1 Vladimir, please review Fix reviewed. If there are no performance penalties, I'm fine with it. verified in dev build #5040 integrated into release70: http://hg.netbeans.org/releases/rev/115b91ffb1a3 Integrated into 'main-golden', will be available in build *201103290400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/1333130a00c1 User: Egor Ushakov <gorrus@netbeans.org> Log: fixed #197053 (Changed variable value is set to variable with the same name in another frame) Verified in RC2 build 20110331 |