diff options
| author | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-03 16:36:56 -0700 |
|---|---|---|
| committer | Med Ismail Bennani <medismail.bennani@gmail.com> | 2022-08-09 21:01:37 -0700 |
| commit | 13aa780f37e193d8c23a6c5ff98cc4c7febc1f95 (patch) | |
| tree | 069a51e8df512af451ff8f661ea705ca80fe01c1 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | 81cbc294571fbcc609666ee4aeb86fbb68a7ec23 (diff) | |
| download | llvm-13aa780f37e193d8c23a6c5ff98cc4c7febc1f95.zip llvm-13aa780f37e193d8c23a6c5ff98cc4c7febc1f95.tar.gz llvm-13aa780f37e193d8c23a6c5ff98cc4c7febc1f95.tar.bz2 | |
[lldb/crashlog] Remove 'process_path' parsing logic
In can happen when creating stackshot crash report that that key is missing.
Moreover, we try to parse that key but don't use it, or need it, since we
fetch images and symbolicate the stackframes using the binaries UUIDs.
This is why this patch removes everything that is related to the
`process_path`/`procPath` parsing.
rdar://95054188
Differential Revision: https://reviews.llvm.org/D131033
Signed-off-by: Med Ismail Bennani <medismail.bennani@gmail.com>
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_json.test | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_json.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_json.test index 50da725..946b706 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_json.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/parser_json.test @@ -7,12 +7,11 @@ import json parser = crashlog.JSONCrashLogParser("", "", False) -process_info_json = json.loads('{"pid" : 287, "procName" : "mediaserverd", "procPath" : "\/usr\/sbin\/mediaserverd"}') +process_info_json = json.loads('{"pid" : 287, "procName" : "mediaserverd"}') parser.parse_process_info(process_info_json) assert parser.crashlog.process_id == 287 assert parser.crashlog.process_identifier == "mediaserverd" -assert parser.crashlog.process_path == "/usr/sbin/mediaserverd" crash_reason_json = json.loads('{"type" : "EXC_BAD_ACCESS", "signal" : "SIGSEGV", "subtype" : "KERN_INVALID_ADDRESS"}') assert parser.parse_crash_reason(crash_reason_json) == "EXC_BAD_ACCESS (SIGSEGV) (KERN_INVALID_ADDRESS)" |
