diff options
Diffstat (limited to 'lldb/examples/synthetic/libcxx.py')
| -rw-r--r-- | lldb/examples/synthetic/libcxx.py | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/lldb/examples/synthetic/libcxx.py b/lldb/examples/synthetic/libcxx.py index 8c58ae52faa..815c76f78ad 100644 --- a/lldb/examples/synthetic/libcxx.py +++ b/lldb/examples/synthetic/libcxx.py @@ -125,8 +125,7 @@ class stdvector_SynthProvider: pass def has_children(self): - # retrieving the count is quick enough on a std::vector - return self.num_children() > 0 + return True # Just an example: the actual summary is produced by a summary string: size=${svar%#} def stdvector_SummaryProvider(valobj,dict): @@ -322,24 +321,6 @@ class stdlist_SynthProvider: pass def has_children(self): - logger = lldb.formatters.Logger.Logger() - if self.count == None: - self.update() - try: - next_val = self.head.GetValueAsUnsigned(0) - prev_val = self.tail.GetValueAsUnsigned(0) - if next_val == 0 or prev_val == 0: - return False - if next_val == self.node_address: - return False - # skip all the advanced logic to detect the exact count of children - # in the interest of speed from this point on, we MIGHT have children - # our loop detection logic will still make nothing show up :) - return True - except: - return 0; - if self.count == 0: - return False return True @@ -504,7 +485,7 @@ class stdmap_SynthProvider: return 0; def has_children(self): - return self.num_children_impl() > 0 + return True def get_data_type(self): logger = lldb.formatters.Logger.Logger() @@ -629,9 +610,7 @@ class stddeque_SynthProvider: return min(self.count, _deque_capping_size) def has_children(self): - if self.cont is None: - self.update() - return self.count > 0 + return True def get_child_index(self,name): logger = lldb.formatters.Logger.Logger() |

