aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
diff options
context:
space:
mode:
authorDavid Spickett <david.spickett@linaro.org>2023-03-14 11:52:48 +0000
committerDavid Spickett <david.spickett@linaro.org>2023-03-21 09:10:09 +0000
commit85bc498826d4dac4b64f7b02659f6ec52f11c223 (patch)
tree64e9a59a365953a82230739c4e43610262ec2cd7 /llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp
parentd0de2c51c9a9fc0fedb97ee98f61ce08cb34972b (diff)
downloadllvm-85bc498826d4dac4b64f7b02659f6ec52f11c223.zip
llvm-85bc498826d4dac4b64f7b02659f6ec52f11c223.tar.gz
llvm-85bc498826d4dac4b64f7b02659f6ec52f11c223.tar.bz2
[LLDB] Show sub type of signals when debugging a core file
Previously we only looked at the si_signo field, so you got: ``` (lldb) bt * thread #1, name = 'a.out.mte', stop reason = signal SIGSEGV * frame #0: 0x00000000004007f4 ``` This patch adds si_code so we can show: ``` (lldb) bt * thread #1, name = 'a.out.mte', stop reason = signal SIGSEGV: sync tag check fault * frame #0: 0x00000000004007f4 ``` The order of errno and code was incorrect in ElfLinuxSigInfo::Parse. It was the order that a "swapped" siginfo arch would use, which for Linux, is only MIPS. We removed MIPS Linux support some time ago. See: https://github.com/torvalds/linux/blob/fe15c26ee26efa11741a7b632e9f23b01aca4cc6/include/uapi/asm-generic/siginfo.h#L121 A test is added using memory tagging faults. Which were the original motivation for the changes. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D146045
Diffstat (limited to 'llvm/lib/CodeGen/AssignmentTrackingAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions