Remove the "-x" from the finish-swig-Python-LLDB.sh shell options so it doesn't print out all of the commands when executing the shell script.
Cleaned up the lldb.utils.symbolication, lldb.macosx.heap and lldb.macosx.crashlog. The lldb.macosx.heap can now build a dylib for the current triple into a temp directory and use it from there.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@155577 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/examples/python/crashlog.py b/examples/python/crashlog.py
index d81e968..a550a86 100755
--- a/examples/python/crashlog.py
+++ b/examples/python/crashlog.py
@@ -115,7 +115,7 @@
if self.resolved_path:
# Don't load a module twice...
return True
- print 'Locating %s %s...' % (self.uuid, self.path),
+ print 'Getting symbols for %s %s...' % (self.uuid, self.path),
if os.path.exists(self.dsymForUUIDBinary):
dsym_for_uuid_command = '%s %s' % (self.dsymForUUIDBinary, self.uuid)
s = commands.getoutput(dsym_for_uuid_command)
@@ -147,10 +147,10 @@
return False
if (self.resolved_path and os.path.exists(self.resolved_path)) or (self.path and os.path.exists(self.path)):
print 'ok'
- if self.resolved_path:
- print ' exe = "%s"' % self.resolved_path
- if self.symfile:
- print ' dsym = "%s"' % self.symfile
+ # if self.resolved_path:
+ # print ' exe = "%s"' % self.resolved_path
+ # if self.symfile:
+ # print ' dsym = "%s"' % self.symfile
return True
return False
@@ -424,7 +424,7 @@
if err:
print err
else:
- print 'loaded %s' % image
+ #print 'loaded %s' % image
loaded_images.append(image)
for thread in crash_log.threads:
diff --git a/examples/python/symbolication.py b/examples/python/symbolication.py
index 8f10be8..5e6cb64 100755
--- a/examples/python/symbolication.py
+++ b/examples/python/symbolication.py
@@ -288,7 +288,6 @@
if not self.module:
self.locate_module_and_debug_symbols ()
resolved_path = self.get_resolved_path()
- print 'target.AddModule (path="%s", arch="%s", uuid=%s, symfile="%s")' % (resolved_path, self.arch, self.uuid, self.symfile)
self.module = target.AddModule (resolved_path, self.arch, self.uuid)#, self.symfile)
if not self.module:
return 'error: unable to get module for (%s) "%s"' % (self.arch, self.get_resolved_path())