diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2021-10-07 15:12:45 -0700 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2021-10-07 15:53:52 -0700 |
| commit | b225c5f7861c7f99de3d52dc1ed23e358c5cce36 (patch) | |
| tree | 4353740879579e95cdb4bad6481bd1eae1269969 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | b913065bf470bcaf1ee8ff8b6a647b877110a4ba (diff) | |
| download | llvm-b225c5f7861c7f99de3d52dc1ed23e358c5cce36.zip llvm-b225c5f7861c7f99de3d52dc1ed23e358c5cce36.tar.gz llvm-b225c5f7861c7f99de3d52dc1ed23e358c5cce36.tar.bz2 | |
[lldb] Parse and display reporting errors from JSON crashlogs
JSON crashlogs have an optional field named reportNotes that contains
any potential errors encountered by the crash reporter when generating
the crashlog. Parse and display them in LLDB.
Differential revision: https://reviews.llvm.org/D111339
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips | 6 | ||||
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips index 5446d0d..109ac2b 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips @@ -170,5 +170,9 @@ "threadTriggered" : { "queue" : "com.apple.main-thread" } -} +}, + "reportNotes" : [ + "invalid foo", + "invalid bar" +] } diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test index 0c522e9..b70cd44c0 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test @@ -13,3 +13,5 @@ # CHECK: [ 1] {{.*}}out`bar + 8 at test.c # CHECK: [ 2] {{.*}}out`main + 19 at test.c # CHECK: rbp = 0x00007ffeec22a530 +# CHECK: invalid foo +# CHECK: invalid bar |
