summaryrefslogtreecommitdiffstats
path: root/lldb/source/Interpreter/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-03-16 19:01:33 +0000
committerSiva Chandra <sivachandra@google.com>2015-03-16 19:01:33 +0000
commit870602dd3c7efaa7082719df7e20897d808e0b3e (patch)
treef9ccdf524bd5f1a6189a5ab59d6c5fcdf450af45 /lldb/source/Interpreter/ScriptInterpreterPython.cpp
parent11ce908e4c8b521e38e5db9da476b7d50b57bee6 (diff)
downloadbcm5719-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.cpp2
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);
OpenPOWER on IntegriCloud