From 48d157dd41c38bcfb021912fe1c7df384604b8c2 Mon Sep 17 00:00:00 2001 From: Greg Clayton Date: Thu, 5 Mar 2015 22:53:06 +0000 Subject: symbolicate the application specific backtraces that are in MacOSX crash log files. llvm-svn: 231415 --- lldb/examples/python/symbolication.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lldb/examples/python/symbolication.py') diff --git a/lldb/examples/python/symbolication.py b/lldb/examples/python/symbolication.py index 8fc1f2121bb..d5215ad922d 100755 --- a/lldb/examples/python/symbolication.py +++ b/lldb/examples/python/symbolication.py @@ -447,6 +447,12 @@ class Symbolicator: for image in self.images: if image.identifier == identifier: images.append(image) + if len(images) == 0: + regex_text = '^.*\.%s$' % (identifier) + regex = re.compile(regex_text) + for image in self.images: + if regex.match(image.identifier): + images.append(image) return images def find_image_containing_load_addr(self, load_addr): -- cgit v1.2.3