summaryrefslogtreecommitdiffstats
path: root/lldb/examples
diff options
context:
space:
mode:
authorSiva Chandra <sivachandra@google.com>2015-03-16 23:02:03 +0000
committerSiva Chandra <sivachandra@google.com>2015-03-16 23:02:03 +0000
commit3b36038f45f9eef50fb3fbbdac1fd4eb47b6c4ca (patch)
treee21e894b68524806e163332608fc50c1ee65f30d /lldb/examples
parent6312991cdb8b1e9cfe393f4fda4f661a649b0af6 (diff)
downloadbcm5719-llvm-3b36038f45f9eef50fb3fbbdac1fd4eb47b6c4ca.tar.gz
bcm5719-llvm-3b36038f45f9eef50fb3fbbdac1fd4eb47b6c4ca.zip
Cleanup implementation of formatter for std::vector from libstdc++.
Summary: Removed unused variables and methods. Test Plan: dotest.py -p TestDataFormatterStdVector Reviewers: vharron Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8368 llvm-svn: 232434
Diffstat (limited to 'lldb/examples')
-rw-r--r--lldb/examples/synthetic/gnu_libstdcpp.py12
1 files changed, 1 insertions, 11 deletions
diff --git a/lldb/examples/synthetic/gnu_libstdcpp.py b/lldb/examples/synthetic/gnu_libstdcpp.py
index 1cc92a75428..a52277c00e1 100644
--- a/lldb/examples/synthetic/gnu_libstdcpp.py
+++ b/lldb/examples/synthetic/gnu_libstdcpp.py
@@ -141,22 +141,14 @@ class StdVectorSynthProvider:
logger = lldb.formatters.Logger.Logger()
self.count = None
self.valobj = valobj
- logger >> "Providing synthetic children for a map named " + str(valobj.GetName())
+ logger >> "Providing synthetic children for a vector named " + str(valobj.GetName())
def num_children(self):
- logger = lldb.formatters.Logger.Logger()
if self.count == None:
self.count = self.num_children_impl()
return self.count
- def is_valid_pointer(ptr,process):
- logger = lldb.formatters.Logger.Logger()
- error = lldb.SBError()
- process.ReadMemory(ptr,1,error)
- return False if error.Fail() else True
-
def num_children_impl(self):
- logger = lldb.formatters.Logger.Logger()
try:
start_val = self.start.GetValueAsUnsigned(0)
finish_val = self.finish.GetValueAsUnsigned(0)
@@ -191,7 +183,6 @@ class StdVectorSynthProvider:
return 0;
def get_child_index(self,name):
- logger = lldb.formatters.Logger.Logger()
try:
return int(name.lstrip('[').rstrip(']'))
except:
@@ -211,7 +202,6 @@ class StdVectorSynthProvider:
return None
def update(self):
- logger = lldb.formatters.Logger.Logger()
# preemptively setting this to None - we might end up changing our mind later
self.count = None
try:
OpenPOWER on IntegriCloud