JDevlieghere created this revision. JDevlieghere added a reviewer: mib. Herald added a project: All. JDevlieghere requested review of this revision.
Correctly parse the image high address from JSON crashlogs. This is invisible in the output but necessary for a follow up patch that will test the new behavior. https://reviews.llvm.org/D148053 Files: lldb/examples/python/crashlog.py Index: lldb/examples/python/crashlog.py =================================================================== --- lldb/examples/python/crashlog.py +++ lldb/examples/python/crashlog.py @@ -510,7 +510,8 @@ 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 = ''
Index: lldb/examples/python/crashlog.py =================================================================== --- lldb/examples/python/crashlog.py +++ lldb/examples/python/crashlog.py @@ -510,7 +510,8 @@ 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 = ''
_______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits