Skip to content

Commit 1def071

Browse files
committed
[lldb] Parse image high address from JSON crashlogs
Use the base + size to correctly populate the image high address when parsing JSON crashlogs. Differential revision: https://reviews.llvm.org/D148053 (cherry picked from commit b67b7bb)
1 parent 2fd9697 commit 1def071

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lldb/examples/python/crashlog.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,8 @@ def parse_images(self, json_images):
510510
for json_image in json_images:
511511
img_uuid = uuid.UUID(json_image['uuid'])
512512
low = int(json_image['base'])
513-
high = int(0)
513+
high = low + int(
514+
json_image['size']) if 'size' in json_image else low
514515
name = json_image['name'] if 'name' in json_image else ''
515516
path = json_image['path'] if 'path' in json_image else ''
516517
version = ''

0 commit comments

Comments
 (0)