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.

llvm-svn: 155577
This commit is contained in:
Greg Clayton
2012-04-25 18:40:20 +00:00
parent 6fe744cc38
commit d712ef0fd7
5 changed files with 53 additions and 57 deletions

View File

@@ -115,7 +115,7 @@ class CrashLog(lldb.utils.symbolication.Symbolicator):
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 @@ class CrashLog(lldb.utils.symbolication.Symbolicator):
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 @@ be disassembled and lookups can be performed using the addresses found in the cr
if err:
print err
else:
print 'loaded %s' % image
#print 'loaded %s' % image
loaded_images.append(image)
for thread in crash_log.threads: