diff options
author | Enrico Granata <egranata@apple.com> | 2013-04-02 21:31:18 +0000 |
---|---|---|
committer | Enrico Granata <egranata@apple.com> | 2013-04-02 21:31:18 +0000 |
commit | 4e969282fd60e439149ac8e58b39eb60495758d8 (patch) | |
tree | 8d1b412a78d52d6a1f45ea1e0c6c52a692862a64 /lldb/tools/lldb-perf/lib/Xcode.cpp | |
parent | d83bfce6d48d5f1c99198ce8106129bfd7a4ea2a (diff) | |
download | bcm5719-llvm-4e969282fd60e439149ac8e58b39eb60495758d8.tar.gz bcm5719-llvm-4e969282fd60e439149ac8e58b39eb60495758d8.zip |
Misc fixes:
- make an overload of Launch() that takes an init list of const char* if all you need to tweak in the launch info are the command-line arguments
- make Run() return an int that you can use as an exit-code
- make dynamic values work properly when recursing in FetchVariables()
- make the po output more obvious in verbose mode
llvm-svn: 178578
Diffstat (limited to 'lldb/tools/lldb-perf/lib/Xcode.cpp')
-rw-r--r-- | lldb/tools/lldb-perf/lib/Xcode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/tools/lldb-perf/lib/Xcode.cpp b/lldb/tools/lldb-perf/lib/Xcode.cpp index c095ea407c1..7b35e1c8cb5 100644 --- a/lldb/tools/lldb-perf/lib/Xcode.cpp +++ b/lldb/tools/lldb-perf/lib/Xcode.cpp @@ -33,7 +33,7 @@ Xcode::FetchVariable (SBValue value, uint32_t expand, bool verbose) auto count = value.GetNumChildren(); for (int i = 0; i < count; i++) { - SBValue child(value.GetChildAtIndex(i,value.IsDynamic() ? lldb::eDynamicCanRunTarget : lldb::eNoDynamicValues, true)); + SBValue child(value.GetChildAtIndex(i, lldb::eDynamicCanRunTarget, true)); FetchVariable (child,expand-1,verbose); } } @@ -117,7 +117,7 @@ Xcode::RunExpression (SBFrame frame, const char* expression, bool po, bool verbo { auto descr = value.GetObjectDescription(); if (descr) - printf("%s\n",descr); + printf("po = %s\n",descr); } } |