diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-31 10:28:51 -0800 |
|---|---|---|
| committer | Jonas Devlieghere <jonas@devlieghere.com> | 2022-01-31 10:50:16 -0800 |
| commit | e1cad1303bf9d2a77546469dc0987502692f80d9 (patch) | |
| tree | a73431cd549c4bc7885784285528b0b23c711857 /lldb/test/Shell/ScriptInterpreter/Python | |
| parent | d14897c7dad8c05c003bada019c0b573ace63a1a (diff) | |
| download | llvm-e1cad1303bf9d2a77546469dc0987502692f80d9.zip llvm-e1cad1303bf9d2a77546469dc0987502692f80d9.tar.gz llvm-e1cad1303bf9d2a77546469dc0987502692f80d9.tar.bz2 | |
[lldb] Support Rosetta registers in crashlog.py
Rosetta crashlogs can have their own thread register state. Unlike the
other registers which ware directly listed under "threadState", the
Rosetta registers are nested under their own key in the JSON, as
illustrated below:
{
"threadState":
{
"rosetta":
{
"tmp2":
{
"value": 4935057216
},
"tmp1":
{
"value": 4365863188
},
"tmp0":
{
"value": 18446744073709551615
}
}
}
}
Diffstat (limited to 'lldb/test/Shell/ScriptInterpreter/Python')
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips | 11 | ||||
| -rw-r--r-- | lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test | 1 |
2 files changed, 12 insertions, 0 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 109ac2b..af72bba 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/Inputs/a.out.ips @@ -106,6 +106,17 @@ "rcx": { "value": 140732860114656 }, + "rosetta": { + "tmp2": { + "value": 8 + }, + "tmp1": { + "value": 20 + }, + "tmp0": { + "value": 92 + } + }, "flavor": "x86_THREAD_STATE", "rdi": { "value": 1 diff --git a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test index b70cd44c0..1669b40 100644 --- a/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test +++ b/lldb/test/Shell/ScriptInterpreter/Python/Crashlog/json.test @@ -13,5 +13,6 @@ # CHECK: [ 1] {{.*}}out`bar + 8 at test.c # CHECK: [ 2] {{.*}}out`main + 19 at test.c # CHECK: rbp = 0x00007ffeec22a530 +# CHECK: tmp2 = 0x0000000000000008 # CHECK: invalid foo # CHECK: invalid bar |
