diff options
| author | Siva Chandra <sivachandra@google.com> | 2015-03-16 19:01:33 +0000 |
|---|---|---|
| committer | Siva Chandra <sivachandra@google.com> | 2015-03-16 19:01:33 +0000 |
| commit | 870602dd3c7efaa7082719df7e20897d808e0b3e (patch) | |
| tree | f9ccdf524bd5f1a6189a5ab59d6c5fcdf450af45 /lldb/source/API/SBCommandInterpreter.cpp | |
| parent | 11ce908e4c8b521e38e5db9da476b7d50b57bee6 (diff) | |
| download | bcm5719-llvm-870602dd3c7efaa7082719df7e20897d808e0b3e.tar.gz bcm5719-llvm-870602dd3c7efaa7082719df7e20897d808e0b3e.zip | |
Handle PyLong return values in LLDBSwigPython_CalculateNumChildren.
Summary:
Also, change its return type to size_t to match the return types of
its callers.
With this change, std::vector and std::list data formatter tests
pass on Linux (when using libstdc++) with clang as well as with gcc.
These tests have also been enabled in this patch.
Test Plan: dotest.py -p <TestDataFormatterStdVector|TestDataFormatterStdList>
Reviewers: vharron, clayborg
Reviewed By: clayborg
Subscribers: zturner, lldb-commits
Differential Revision: http://reviews.llvm.org/D8337
llvm-svn: 232399
Diffstat (limited to 'lldb/source/API/SBCommandInterpreter.cpp')
| -rw-r--r-- | lldb/source/API/SBCommandInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index f8716108a08..36e02b7edf0 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -619,7 +619,7 @@ LLDBSWIGPythonCallThreadPlan (void *implementor, Event *event_sp, bool &got_error); -extern "C" uint32_t +extern "C" size_t LLDBSwigPython_CalculateNumChildren (void *implementor); extern "C" void * |

