summaryrefslogtreecommitdiffstats
path: root/lldb/examples/python/symbolication.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/examples/python/symbolication.py')
-rwxr-xr-xlldb/examples/python/symbolication.py6
1 files changed, 6 insertions, 0 deletions
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):
OpenPOWER on IntegriCloud