diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-04-11 14:45:34 -0700 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2023-04-11 14:46:49 -0700 |
commit | b67b7bb2f73568efac077de189f86e86d9e010d6 (patch) | |
tree | 4ffcf081af703fc2bc668929c878e22ebbc3f11b /lldb/examples | |
parent | da5bea948df0f39c8e120203cf93b5995846a7b8 (diff) | |
download | llvm-b67b7bb2f73568efac077de189f86e86d9e010d6.tar.gz |
[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
Diffstat (limited to 'lldb/examples')
-rwxr-xr-x | lldb/examples/python/crashlog.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/examples/python/crashlog.py b/lldb/examples/python/crashlog.py index 6a5c560238ee..b09c03a50bb7 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 = '' |