Community
Participate
Working Groups
step by step, and step to the line "v = 9;" variables window still show "t1 = 5".(the real value is 1.1) I traced source code, because "-stack-list-locals 0" not detected the "t1" changed, and not create new var. by the way, I think "-var-create" can not reply the type of varaible change, and variable name not change. int main(void) { int v = 0; { int t1 = 5; } { float t1 = 1.1; v = 9; } return 0; }
I can reproduce this with CDI but not with DSF-GDB using CDT 6.0.2 and 7.0. So this can probably be changed to cdt-debug-cdi-gdb.
(In reply to comment #0) > int main(void) > { > int v = 0; > { > int t1 = 5; > } > { > float t1 = 1.1; > v = 9; > } > return 0; > } I didn't think DSF-GDB handled sub-blocks properly (I hadn't found a good way to do it). Maybe GDB does things better in newer versions? Which GDB did you use to test this?
I used GDB 7.0.1 from Fedora and Apple's gdb-1346.