Not sure if anyone else has seen this, but since a recent upgrade to 2.2 I am experiencing this weird problem in gdb when running my app in debug configuration in the simulator. As I step through code in gdb, local variables that I have declared are not showing in the variable display, and if I right mouse on them in the code window I get a message along the lines of "compiler optimized this variable out". What's worse, when I hit a line of code that tests the value of that variable, the comparison takes the incorrect path leading to various application errors. Maybe this is something I have got wrong in my code, but it's pretty basic (the piece of code where I have this problem, that is).