llvm-project/lldb/source
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
..
API [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
Breakpoint [LLDB] Fix display of value of a vector variables in watchpoint operations 2015-10-09 15:13:20 +00:00
Commands Added support to the expression command for dropping into the REPL at will. 2015-10-20 00:55:21 +00:00
Core [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
DataFormatters [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
Expression When target is NULL, provide a debugger so that REPLs can use that to create 2015-10-21 00:28:44 +00:00
Host When calling FileSpec::AppendPathComponent() we don't need to include "." in the path if m_filename is set to exactly '.'. Previously this would cause a FileSpec object that looked like: 2015-10-20 00:17:39 +00:00
Initialization TypeSystem is now a plugin interface and removed any "ClangASTContext &Class::GetClangASTContext()" functions. 2015-09-17 22:23:34 +00:00
Interpreter Added the concept of a Read-Eval-Print-Loop to LLDB. 2015-10-19 23:11:07 +00:00
Plugins [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
Symbol Introduce the concept of a type that is meaningless without dynamic resolution, which are essentially placeholder types meant to appease a language's type system but do not offer any actual information to the debugger, unless further resolved 2015-10-20 00:13:19 +00:00
Target Fixed version of r250913, which actually implements all the static functions. 2015-10-21 19:14:33 +00:00
Utility Add a new task pool class to LLDB 2015-10-20 12:42:05 +00:00
CMakeLists.txt Fix handling of LLDB_VERS_GENERATED_FILE. 2015-10-09 03:40:55 +00:00
Makefile [Makefiles] Align library names with CMake build 2015-07-14 20:25:19 +00:00
lldb.cpp Move LLDB initialization/shutdown to Initialization. 2015-03-19 22:00:21 +00:00