Skip to content

Commit

Permalink
[libstdc++ data-formatters] Remove size limits.
Browse files Browse the repository at this point in the history
Reviewers: granata.enrico

Subscribers: lldb-commits

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

llvm-svn: 250131
  • Loading branch information
Siva Chandra committed Oct 13, 2015
1 parent 3c4927b commit da38894
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lldb/examples/synthetic/gnu_libstdcpp.py
Expand Up @@ -48,17 +48,13 @@ def has_loop(self):
return False

def num_children(self):
global _list_capping_size
logger = lldb.formatters.Logger.Logger()
if self.count == None:
self.count = self.num_children_impl()
if self.count > _list_capping_size:
self.count = _list_capping_size
return self.count

def num_children_impl(self):
logger = lldb.formatters.Logger.Logger()
global _list_capping_size
try:
next_val = self.next.GetValueAsUnsigned(0)
prev_val = self.prev.GetValueAsUnsigned(0)
Expand All @@ -76,8 +72,6 @@ def num_children_impl(self):
while current.GetChildMemberWithName('_M_next').GetValueAsUnsigned(0) != self.node_address:
size = size + 1
current = current.GetChildMemberWithName('_M_next')
if size > _list_capping_size:
return _list_capping_size
return (size - 1)
except:
return 0;
Expand Down Expand Up @@ -346,12 +340,9 @@ def update(self):
pass

def num_children(self):
global _map_capping_size
logger = lldb.formatters.Logger.Logger()
if self.count == None:
self.count = self.num_children_impl()
if self.count > _map_capping_size:
self.count = _map_capping_size
return self.count

def num_children_impl(self):
Expand Down Expand Up @@ -445,6 +436,4 @@ def increment_node(self,node):
def has_children(self):
return True

_map_capping_size = 255
_list_capping_size = 255
_list_uses_loop_detector = True

0 comments on commit da38894

Please sign in to comment.