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/Interpreter/ScriptInterpreterPython.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/Interpreter/ScriptInterpreterPython.cpp')
| -rw-r--r-- | lldb/source/Interpreter/ScriptInterpreterPython.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreterPython.cpp b/lldb/source/Interpreter/ScriptInterpreterPython.cpp index 4ef0bbefd54..db060d2e5d7 100644 --- a/lldb/source/Interpreter/ScriptInterpreterPython.cpp +++ b/lldb/source/Interpreter/ScriptInterpreterPython.cpp @@ -2082,7 +2082,7 @@ ScriptInterpreterPython::CalculateNumChildren (const lldb::ScriptInterpreterObje if (!g_swig_calc_children) return 0; - uint32_t ret_val = 0; + size_t ret_val = 0; { Locker py_lock(this, Locker::AcquireLock | Locker::InitSession | Locker::NoSTDIN); |

