This revision was automatically updated to reflect the committed changes. Closed by commit rL267492: Fix TestGetVariables.py. (authored by chaoren).
Changed prior to commit: http://reviews.llvm.org/D19511?vs=54940&id=54944#toc Repository: rL LLVM http://reviews.llvm.org/D19511 Files: lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c =================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c +++ lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c @@ -12,8 +12,9 @@ static int g_static_var = 123; int main (int argc, char const *argv[]) -{ +{ static int static_var = 123; + g_static_var = 123; // clang bug. Need to touch this variable, otherwise it disappears. int i = 0; // breakpoint 1 for (i=0; i<1; ++i) { Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py =================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py +++ lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py @@ -79,7 +79,7 @@ arg_names = ['argc', 'argv'] local_names = ['i', 'j', 'k'] - static_names = ['static_var', 'g_global_var', 'static_var'] + static_names = ['static_var', 'g_global_var', 'g_static_var'] breakpoint1_locals = ['i'] breakpoint1_statics = ['static_var'] num_args = len(arg_names)
Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c =================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c +++ lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/main.c @@ -12,8 +12,9 @@ static int g_static_var = 123; int main (int argc, char const *argv[]) -{ +{ static int static_var = 123; + g_static_var = 123; // clang bug. Need to touch this variable, otherwise it disappears. int i = 0; // breakpoint 1 for (i=0; i<1; ++i) { Index: lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py =================================================================== --- lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py +++ lldb/trunk/packages/Python/lldbsuite/test/python_api/frame/get-variables/TestGetVariables.py @@ -79,7 +79,7 @@ arg_names = ['argc', 'argv'] local_names = ['i', 'j', 'k'] - static_names = ['static_var', 'g_global_var', 'static_var'] + static_names = ['static_var', 'g_global_var', 'g_static_var'] breakpoint1_locals = ['i'] breakpoint1_statics = ['static_var'] num_args = len(arg_names)
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits