aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/ScriptInterpreter/Python
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2021-04-22 11:34:47 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2021-04-22 11:38:53 -0700
commita62cbd9a0211d08bace8794b435996890feb44d4 (patch)
treed8e7a08cf352f86364be8ffbe75466ca8c0e029a /lldb/test/Shell/ScriptInterpreter/Python
parentd71ee3993fe7decab00c3083438e13f81bd49f02 (diff)
downloadllvm-a62cbd9a0211d08bace8794b435996890feb44d4.zip
llvm-a62cbd9a0211d08bace8794b435996890feb44d4.tar.gz
llvm-a62cbd9a0211d08bace8794b435996890feb44d4.tar.bz2
[lldb] Include thread name in crashlog.py output
Update the JSON parser to include the thread name in the Thread object. rdar://76677320
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips1
-rw-r--r--lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test2
2 files changed, 2 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 02a7a03..5446d0d 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
+++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips
@@ -40,6 +40,7 @@
{
"triggered": true,
"id": 6152004,
+ "name": "Crashing Thread Name",
"threadState": {
"r13": {
"value": 0
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test
index fc95f48..46c3713 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test
+++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test
@@ -3,7 +3,7 @@
# RUN: python %S/patch-crashlog.py --binary %t.out --crashlog %t.crash --offsets '{"main":20, "bar":9, "foo":16}' --json
# RUN: %lldb %t.out -o 'command script import lldb.macosx.crashlog' -o 'crashlog %t.crash' 2>&1 | FileCheck %s
-# CHECK: Thread[0] EXC_BAD_ACCESS (SIGSEGV) (KERN_INVALID_ADDRESS at 0x0000000000000000)
+# CHECK: Thread[0] Crashing Thread Name EXC_BAD_ACCESS (SIGSEGV) (KERN_INVALID_ADDRESS at 0x0000000000000000)
# CHECK: [ 0] {{.*}}out`foo + 16 at test.c
# CHECK: [ 1] {{.*}}out`bar + 8 at test.c
# CHECK: [ 2] {{.*}}out`main + 19 at test.c