From: Jonas Devlieghere Date: Tue, 11 Apr 2023 21:45:34 +0000 (-0700) Subject: [lldb] Parse image high address from JSON crashlogs X-Git-Tag: upstream/17.0.6~11981 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b67b7bb2f73568efac077de189f86e86d9e010d6;p=platform%2Fupstream%2Fllvm.git [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 --- 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 = ''