llvm-capstone/lldb/test
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
..
android/platform Increase default memory cache line size for android 2015-10-20 10:33:17 +00:00
api Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
arm_emulation Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
attic
benchmarks Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
driver/batch_mode Mark TestBatchMode as flaky on linux 2015-10-14 08:57:55 +00:00
example
expression_command Convert expectedFlakeyDarwin to expectedFlakeyDsym for TestCallUserDefinedFunction.py 2015-10-06 15:57:55 +00:00
functionalities [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
help Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
lang Clean up more .dwo files after the tests run 2015-10-21 12:56:37 +00:00
linux Re-disable TestBuiltinTrap on Windows. 2015-10-02 22:47:37 +00:00
logging Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
macosx In r240466, when Greg added the jThreadsInfo packet, he accidentally 2015-10-15 04:20:42 +00:00
make Clean up more .dwo files after the tests run 2015-10-21 12:56:37 +00:00
pexpect-2.4
plugins Run tests with dwo symbol files 2015-10-07 10:02:17 +00:00
python_api Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
settings Fix regression caused by r249769 2015-10-09 11:01:56 +00:00
source-manager Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
terminal Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
test_runner Fix race on subprocess.Popen return values. 2015-10-02 20:51:11 +00:00
tools Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
types Clean up more .dwo files after the tests run 2015-10-21 12:56:37 +00:00
unittest2 Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
warnings/uuid Merge dwarf and dsym tests 2015-09-30 10:12:40 +00:00
.categories
argparse_compat.py
bench-history
bench.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
blacklist.py
CMakeLists.txt Roll dosep.py parallel test runner into dotest.py command line 2015-09-03 18:58:44 +00:00
crashinfo.c
curses_results.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
dosep.py Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
dotest_args.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
dotest_channels.py Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
dotest.py Use six to portably assign metaclasses in Python 2 and 3. 2015-10-20 21:06:05 +00:00
lldb_pylint_helper.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
lldb_shared.py Introduce a mechanism for reusing Python modules out of tree. 2015-10-20 21:05:57 +00:00
lldbbench.py
lldbcurses.py Split getting the key from a window from the code that handles the key. 2015-10-16 23:34:40 +00:00
lldbinline.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
lldbpexpect.py Refactored lldb executable name discovery 2015-05-18 19:39:03 +00:00
lldbplatformutil.py Make several test case arm32 compatible 2015-04-17 09:37:06 +00:00
lldbtest_config.py Refactored lldb executable name discovery 2015-05-18 19:39:03 +00:00
lldbtest.py Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
lldbutil.py Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00
lock.py dotest.py - debug feature that helps find dosep races 2015-05-21 19:09:29 +00:00
Makefile Roll dosep.py parallel test runner into dotest.py command line 2015-09-03 18:58:44 +00:00
progress.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
README-TestSuite Comment discouraging writing command based test cases. 2015-03-18 23:16:58 +00:00
redo.py Convert print statements to print function calls. 2015-10-19 23:45:41 +00:00
test_results.py Use six to portably handle module renames in Python 2 and 3 2015-10-21 17:48:52 +00:00