[Lldb-commits] [PATCH] Cleanup implementation of formatter for std::vector from libstdc++.
Siva Chandra
sivachandra at google.com
Mon Mar 16 16:04:33 PDT 2015
REPOSITORY
rL LLVM
http://reviews.llvm.org/D8368
Files:
lldb/trunk/examples/synthetic/gnu_libstdcpp.py
Index: lldb/trunk/examples/synthetic/gnu_libstdcpp.py
===================================================================
--- lldb/trunk/examples/synthetic/gnu_libstdcpp.py
+++ lldb/trunk/examples/synthetic/gnu_libstdcpp.py
@@ -141,22 +141,14 @@
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 @@
return 0;
def get_child_index(self,name):
- logger = lldb.formatters.Logger.Logger()
try:
return int(name.lstrip('[').rstrip(']'))
except:
@@ -211,7 +202,6 @@
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:
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D8368.22063.patch
Type: text/x-patch
Size: 1430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20150316/b15545ce/attachment.bin>
More information about the lldb-commits
mailing list