Fix a bug where global variable can be reported as local.
authorHafiz Abid Qadeer <hafiz_abid@mentor.com>
Mon, 8 Dec 2014 18:07:40 +0000 (18:07 +0000)
committerHafiz Abid Qadeer <hafiz_abid@mentor.com>
Mon, 8 Dec 2014 18:07:40 +0000 (18:07 +0000)
commit290ece827804d40e2e5e98832624d31434ef8e18
tree5fc3f4a84777ee6cc217135a8272df4e02e38d03
parentbeadd56a7d4fb234699b95575fcbf2a8ff64498e
Fix a bug where global variable can be reported as local.

There was an error in ORing mask which is used for getting a list of variables.
Previously, these constants were unnamed, and possible it become the reason of this
bug. Also added test case for -stack-list-local and -stack-list_arguments.

Patch from Ilia K <ki.stfu@gmail.com>.

llvm-svn: 223674
lldb/test/tools/lldb-mi/TestMiStack.py [new file with mode: 0644]
lldb/test/tools/lldb-mi/main.c
lldb/tools/lldb-mi/MICmdCmdStack.cpp
lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.cpp
lldb/tools/lldb-mi/MICmnLLDBDebugSessionInfo.h
lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp