forked from OSchip/llvm-project
[crashlog] Use the right path for dsymforUUID and remove an unnecessary import.
<rdar://problem/49925960> llvm-svn: 358615
This commit is contained in:
parent
1788b89b4f
commit
e3b5eba1ba
|
@ -221,7 +221,7 @@ class CrashLog(symbolication.Symbolicator):
|
||||||
|
|
||||||
class DarwinImage(symbolication.Image):
|
class DarwinImage(symbolication.Image):
|
||||||
"""Class that represents a binary images in a darwin crash log"""
|
"""Class that represents a binary images in a darwin crash log"""
|
||||||
dsymForUUIDBinary = os.path.expanduser('~rc/bin/dsymForUUID')
|
dsymForUUIDBinary = '/usr/local/bin/dsymForUUID'
|
||||||
if not os.path.exists(dsymForUUIDBinary):
|
if not os.path.exists(dsymForUUIDBinary):
|
||||||
try:
|
try:
|
||||||
dsymForUUIDBinary = subprocess.check_output('which dsymForUUID',
|
dsymForUUIDBinary = subprocess.check_output('which dsymForUUID',
|
||||||
|
@ -303,7 +303,6 @@ class CrashLog(symbolication.Symbolicator):
|
||||||
return False
|
return False
|
||||||
if not self.resolved_path and not os.path.exists(self.path):
|
if not self.resolved_path and not os.path.exists(self.path):
|
||||||
try:
|
try:
|
||||||
import subprocess
|
|
||||||
dsym = subprocess.check_output(
|
dsym = subprocess.check_output(
|
||||||
["/usr/bin/mdfind",
|
["/usr/bin/mdfind",
|
||||||
"com_apple_xcode_dsym_uuids == %s"%uuid_str])[:-1]
|
"com_apple_xcode_dsym_uuids == %s"%uuid_str])[:-1]
|
||||||
|
@ -321,10 +320,6 @@ class CrashLog(symbolication.Symbolicator):
|
||||||
if (self.resolved_path and os.path.exists(self.resolved_path)) or (
|
if (self.resolved_path and os.path.exists(self.resolved_path)) or (
|
||||||
self.path and os.path.exists(self.path)):
|
self.path and os.path.exists(self.path)):
|
||||||
print('ok')
|
print('ok')
|
||||||
# if self.resolved_path:
|
|
||||||
# print ' exe = "%s"' % self.resolved_path
|
|
||||||
# if self.symfile:
|
|
||||||
# print ' dsym = "%s"' % self.symfile
|
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
self.unavailable = True
|
self.unavailable = True
|
||||||
|
|
Loading…
Reference in New Issue