Fix Issue 10311 - GDB prints wrong value for variable updated from closure
Merge pull request #4074 from tramker/bug10311

Fix Issue 10311 - GDB prints wrong value for variable updated from closure