Community
Participate
Working Groups
I'm using latest Eclipse CDT Kepler Release and debuging application via gdb using Standard GDB Hardware Debugging Launcher. I found that expression once added isn't updated anymore. Nothing helps: reevaluating, disabling/enabling, changing views, reselection debug session or thread (in Debug view), even deleting and adding same expression again ! It's being updated only after I change it slightly (surround in parentheses). I've checked gdb console and it shows that gdb always return correct values. But eclipse just doesn't update it in gui showing some old (cached?) value.
This bug also took place with GDB-DSF session type. How to reproduce: 1. Start Debug attached project 2. Step into twice (pointer now is in dbg_preprocessor_define.cpp) 3. Run to line 112, step over twice. 4. Add 'y' into Expression view => after step 3, y = 14 5. Run to dbg_preprocessor_include() in dbg_preprocessor.cpp and step into 6. Note here: we shadow 'y' by local variable 'int y= 5;' 7. Step over line 21 8. Check value of "y" in gdb console and Memory View also Observed behavior: In Variable view bottom, "y" has 2 values at the same time (Details:5 and 14) --- re-play log ------------------------ GDB trace fragment on entering -> void dbg_preprocessor_include(){ 052,993 198-data-evaluate-expression --thread 1 --frame 0 y 053,014 198^done,value="0" In Expression view: Name : y Details:0 Default:14 Decimal:14 Hex:0xe Binary:1110 Octal:016 ---------------------------- after step over; 742,672 (gdb) 742,697 211-data-evaluate-expression --thread 1 --frame 0 y 742,722 211^done,value="5" ---------------------------------- In expression view: Name : y Details:5 Default:14 Decimal:14 Hex:0xe Binary:1110 Octal:016 In both cases |=y | int | 14 displayed in Expression view table.
Created attachment 265672 [details] Sample project to debug
(In reply to Stanislav Perepelitsa from comment #2) > Created attachment 265672 [details] > Sample project to debug could you please provide a minimal program to make it possible to compile it and reproduce the issue in any OS?