aboutsummaryrefslogtreecommitdiff
path: root/lldb/examples/python/crashlog.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/examples/python/crashlog.py')
-rwxr-xr-xlldb/examples/python/crashlog.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py
index 6a5c560..b09c03a5 100755
--- a/lldb/examples/python/crashlog.py
+++ b/lldb/examples/python/crashlog.py
@@ -510,7 +510,8 @@ class JSONCrashLogParser(CrashLogParser):
for json_image in json_images:
img_uuid = uuid.UUID(json_image['uuid'])
low = int(json_image['base'])
- high = int(0)
+ high = low + int(
+ json_image['size']) if 'size' in json_image else low
name = json_image['name'] if 'name' in json_image else ''
path = json_image['path'] if 'path' in json_image else ''
version = ''