Community
Participate
Working Groups
All local variables and function parameters are shown as return values (e.g. "(test() returned)p1") after performing step return from a method with no return value. e.g. In the code shown below setting a breakpoint as indicated, running to it, performing a step return. After that all variables are prefixed "(test() returned)" void test(int p1) { int testVar = p1; i = testVar + 3; //Breakpoint Here } int main(void) { int mainVar = 0; while (1) { mainVar++; i++; j--; test(i); } return 0; } Using 8.4.0 RC3 (8.4.0.201405261845) on Windows with MinGW & GDB Hardware Debugging.
Wow major bug! I can reproduce it. I'll work on it today. Thanks William!
Fix: https://git.eclipse.org/r/27721 William are you able to try it out? I'll commit in a couple of hours.
(In reply to Marc Khouzam from comment #2) > Fix: > https://git.eclipse.org/r/27721 > > William are you able to try it out? > I'll commit in a couple of hours. Just tried it and that fixes it.
(In reply to William Riley from comment #3) > (In reply to Marc Khouzam from comment #2) > > Fix: > > https://git.eclipse.org/r/27721 > > > > William are you able to try it out? > > I'll commit in a couple of hours. > > Just tried it and that fixes it. Perfect. Thanks a lot for this.
Committed to master: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=93fe0e78c34a036466a5d69bf658aebc2a8207dc and cdt_8_4: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?h=cdt_8_4&id=e377d6d0700360ba91e946810b44e80e3535c857
I've added a JUnit test to verify this case: https://git.eclipse.org/r/27735 It is a minor change and I'll commit to master once the build succeeds.