diff options
author | Michał Górny <mgorny@moritz.systems> | 2022-06-29 07:18:54 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2022-06-29 15:37:26 +0200 |
commit | 251165b2e48216f8fbeef1960711219afac406f4 (patch) | |
tree | 01ff2ae7aa4b62dd3f3371e930b918fd6c870be6 /lldb/source/Commands/CommandObjectThread.cpp | |
parent | 56ab966a04dd22570fcb18276e2409c94e82c571 (diff) | |
download | llvm-251165b2e48216f8fbeef1960711219afac406f4.zip llvm-251165b2e48216f8fbeef1960711219afac406f4.tar.gz llvm-251165b2e48216f8fbeef1960711219afac406f4.tar.bz2 |
[lldb] [test] Use raise(SIGSTOP) instead of trap in fork tests
Replace the use of "trap" with a new "stop" command in fork tests,
that maps to `raise(SIGSTOP)`. Since traps do not increment PC on some
architectures (notably ARM), using traps would require special logic
to increment it while testing. Using SIGSTOP avoids the problem
and is probably more logical, given that the purpose of the "trap"s
was to simply stop the inferior at a synchronization point. This fixes
tests on AArch64 (and possibly ARM, I'll update XFAILs when it is
confirmed by the buildbot).
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.llvm.org/D128780
Diffstat (limited to 'lldb/source/Commands/CommandObjectThread.cpp')
0 files changed, 0 insertions, 0 deletions