Community
Participate
Working Groups
GDB 7.6.50.20131218-cvs-ubuntu struct Test { int a; }; int main() { Test * t; return 0; } 1. Compile the sample code with -O0 -g3 2. Start debugging 3. Add 't' to the Expressions view or hover on the variable 4. In the value columns, there is this message: Error: Multiple errors reported.\ Failed to execute MI command: -var-create - * t Error message from debugger back end: value has been optimized out\ Unable to create variable object But in the GDB traces, it's the same message twice: 234,810 49-var-create --thread 1 --frame 0 - * t+0 234,812 49^error,msg="value has been optimized out" 234,812 (gdb) 234,815 50-var-create --thread 1 --frame 0 - * t+0 234,816 50^error,msg="value has been optimized out" 234,816 (gdb) It would be more helpful if it just said "value has been optimized out" in the Value column.