llvm-project/lldb
Chaoren Lin 0efb51a072 Fix SBFrame::FindValue for when only global variables exist.
Summary:
sc.block->AppendVariables(...) returns 0 if there are no arguments or local
variables, but we still need to check for global variables.

Test Plan:
```
$ cat test.cpp
int i;
int main() {
}
$ lldb test -o 'b main' -o r
(lldb) script
>>> print lldb.frame.FindValue('i', lldb.eValueTypeVariableGlobal)
(int) i = 0 # as opposed to "No value"
```

Reviewers: jingham, ovyalov, vharron, clayborg

Reviewed By: clayborg

Subscribers: lldb-commits

Differential Revision: http://reviews.llvm.org/D8464

llvm-svn: 232767
2015-03-19 22:00:13 +00:00
..
cmake Fix linking of unit tests via CMake on Windows. 2015-03-18 16:56:24 +00:00
docs Add qModuleInfo request in order to get module information (uuid, triple,..) by module path from remote platform. 2015-02-25 22:15:44 +00:00
examples Cleanup to simplify the formatter for std::map of libstdc++. 2015-03-18 22:01:45 +00:00
include Move some functions from source/lldb.cpp to Utility. 2015-03-18 21:31:45 +00:00
lib Initial Assembly profiler for mips64 2015-03-18 09:21:29 +00:00
lit Create a check-lldb-unit target to run unit tests. 2015-03-13 20:55:07 +00:00
lldb.xcodeproj Move some functions from source/lldb.cpp to Utility. 2015-03-18 21:31:45 +00:00
lldb.xcworkspace Fixup gtest layout, add Linux ThreadStateCoordinator.cpp. 2014-09-25 19:25:07 +00:00
resources Bump major vers # in xcode project file from 330 to 340. 2015-03-06 00:45:01 +00:00
scripts Fix the clang -Werror build & make the unit tests link under Linux 2015-03-17 03:32:21 +00:00
source Fix SBFrame::FindValue for when only global variables exist. 2015-03-19 22:00:13 +00:00
test expose 64 bit addresses through MI 2015-03-19 17:27:23 +00:00
tools Remove IDE_MI_APP_EXIT_OK msg on exit (MI) 2015-03-19 17:40:15 +00:00
unittests Fix linking of unit tests via CMake on Windows. 2015-03-18 16:56:24 +00:00
utils LUI: Fix some issues causing crashes in the source view 2013-10-23 01:18:21 +00:00
www Introduce documentation for Python command objects 2015-03-13 22:27:36 +00:00
.arcconfig Update .arcconfig to point to reviews.llvm.org 2014-05-20 21:24:59 +00:00
.clang-format Update build instructions / coding conventions. 2015-03-10 23:22:25 +00:00
.gitignore Added remote-build.py and wired it into Xcode for Linux and MacOSX+Linux builds. 2015-02-03 01:50:39 +00:00
CMakeLists.txt Create a check-lldb-unit target to run unit tests. 2015-03-13 20:55:07 +00:00
CODE_OWNERS.txt Add a CODE_OWNERS.txt file to LLDB. 2015-03-11 16:26:46 +00:00
INSTALL.txt Revert "git-svn test commit" 2014-11-18 22:45:59 +00:00
LICENSE.TXT
Makefile Remove the -Wno-unused-function option. We are clean 2014-09-09 07:49:15 +00:00