Bug ID 15439
Summary Expression evaluation can assert with invalid context
Component All Bugs
When expression evaluation is performed while stopped in an inlined method, and the inferior has been compiled with gcc, the variable list for the function block may not include the 'this' pointer. Specifically, when the inlined method is not called from a method of the same struct or class, the following assertion occurs: 'Stopped in a C++ method, but 'this' isn't available; pretending we are in a generic context' Reproduced using gcc 4.6.3 on Ubuntu 12.04 with: ./dotest.py -v -C gcc lang/cpp/this Note that the above test passes with clang, and the test passes if the method is not decorated with always_inline. A variant on the above test passes if the always_inline method is called from a method with default attributes.