hanchenye-llvm-project/lldb/scripts
Siva Chandra 9ac7a6c51f [SBValue] Add a method GetNumChildren(uint32_t max)
Summary:
Along with this, support for an optional argument to the "num_children"
method of a Python synthetic child provider has also been added. These have
been added with the following use case in mind:

Synthetic child providers currently have a method "has_children" and
"num_children". While the former is good enough to know if there are
children, it does not give any insight into how many children there are.
Though the latter serves this purpose, calculating the number for children
of a data structure could be an O(N) operation if the data structure has N
children. The new method added in this change provide a middle ground.
One can call GetNumChildren(K) to know if a child exists at an index K
which can be as large as the callers tolerance can be. If the caller wants
to know about children beyond K, it can make an other call with 2K. If the
synthetic child provider maintains state about it counting till K
previosly, then the next call is only an O(K) operation. Infact, all
calls made progressively with steps of K will be O(K) operations.

Reviewers: vharron, clayborg, granata.enrico

Subscribers: labath, lldb-commits

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

llvm-svn: 250930
2015-10-21 19:28:08 +00:00
..
Python [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
interface [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
CMakeLists.txt [cmake] Remove LLDB_ENABLE_PYTHON_SCRIPTS_SWIG_API_GENERATION. 2015-09-08 05:00:22 +00:00
Makefile
build-lldb-llvm-clang
build-llvm.pl I've been seeing a problem with xcodebuilds on macosx for 2015-10-16 01:27:21 +00:00
build-swig-wrapper-classes.sh
buildSwigWrapperClasses.py Run py2to3 on lldb/scripts folder. 2015-10-19 23:45:25 +00:00
buildbot.py
checkpoint-llvm.pl
disasm-gdb-remote.pl
finish-swig-wrapper-classes.sh
finishSwigWrapperClasses.py Run py2to3 on lldb/scripts folder. 2015-10-19 23:45:25 +00:00
generate-vers.pl
get_relative_lib_dir.py Support RHEL 7 and similar systems that use architecture-specific Python lib dirs 2015-10-12 20:12:27 +00:00
install-lldb.sh
install_custom_python.py Making linking against Python simpler on Windows. 2015-04-10 22:58:56 +00:00
lldb.swig Change swig interface files to use PythonDataObjects. 2015-10-14 16:59:32 +00:00
package-clang-headers.py If constructed llvm_build_dir doesn't exist, retry as an iphoneos path. 2015-02-21 06:13:51 +00:00
sed-sources
shush Several improvements to the shush script 2015-01-16 23:16:22 +00:00
utilsArgsParse.py Run py2to3 on lldb/scripts folder. 2015-10-19 23:45:25 +00:00
utilsDebug.py Run py2to3 on lldb/scripts folder. 2015-10-19 23:45:25 +00:00
utilsOsType.py Update swig generation scripts to support Python 3. 2015-10-06 21:11:28 +00:00
verify_api.py