llvm-project/lldb/test/API
Michał Górny 3f1372365a [lldb] Support gdbserver signals
GDB and LLDB use different signal models.  GDB uses a predefined set
of signal codes, and maps platform's signos to them.  On the other hand,
LLDB has historically simply passed native signos.

In order to improve compatibility between LLDB and gdbserver, the GDB
signal model should be used.  However, GDB does not provide a mapping
for all existing signals on Linux and unsupported signals are passed
as 'unknown'.  Limiting LLDB to this behavior could be considered
a regression.

To get the best of both worlds, use the LLDB signal model when talking
to lldb-server, and the GDB signal model otherwise.  For this purpose,
new versions of lldb-server indicate "native-signals+" via qSupported.
At the same time, we also detect older versions of lldb-server
via QThreadSuffixSupported for backwards compatibility.  If neither test
succeeds, we assume gdbserver or another implementation using GDB model.

Differential Revision: https://reviews.llvm.org/D108078
2021-11-10 09:38:55 +01:00
..
android/platform [lldb] Introduce createTestTarget for creating a valid target in API tests 2021-05-24 16:18:44 +02:00
api [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
arm [lldb/test] Skip TestBreakpointThumbCodesection on arm64. 2020-06-25 16:20:27 -07:00
assert_messages_test [lldb] Introduce createTestTarget for creating a valid target in API tests 2021-05-24 16:18:44 +02:00
benchmarks [lldb/Test] Add a trace method to replace print statements. 2020-05-25 11:11:46 -07:00
commands Add breakpoint resolving stats to each target. 2021-10-27 16:50:11 -07:00
driver/batch_mode [LLDB] Skip random fails on Arm/AArch64 Linux buildbot 2021-08-09 13:53:48 +05:00
functionalities [lldb] Support gdbserver signals 2021-11-10 09:38:55 +01:00
iohandler [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
lang [lldb] Remove failures case from TestTaggedPointerCmd 2021-11-07 10:40:43 -08:00
linux Reland "[lldb] Remove non address bits when looking up memory regions" 2021-11-03 13:56:51 +00:00
lua_api [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
macosx [lldb/test] Fix TestFunctionStarts for eee887e0 2021-10-29 14:43:53 +02:00
python_api [NFC] fix a typo 2021-10-15 14:51:49 +08:00
repl/clang [LLDB] Skip TestClangREPL.py on Arm/AArch64 Linux 2021-10-04 11:50:17 +05:00
sample_test [lldb] Readd deleted variable in the sample test 2021-05-24 16:29:25 +02:00
sanity Add support for XFAILing a test based on a setting. 2020-03-12 19:26:24 -07:00
source-manager [lldb/test] Fix TestSourceManager for eee887e0 2021-10-29 14:56:23 +02:00
terminal [LLDB] Skip flaky tests on Arm/AArch64 Linux bots 2021-08-04 16:57:36 +05:00
test_runner/test
test_utils [lldb/test] Print build commands in trace mode 2021-10-29 11:33:31 +02:00
tools [lldb-vscode] Add presentation hints for scopes 2021-11-09 17:50:46 +01:00
types [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
CMakeLists.txt [lldb] Copy the system debugserver in LLDB.framework 2021-09-24 15:07:22 -07:00
dotest.py
get_darwin_real_python.py [lldb/test][Darwin] Ask dyld where the real python is 2020-05-08 10:22:58 -07:00
lit.cfg.py [lldb] Remove support for replaying the test suite from a reproducer 2021-09-30 10:47:19 -07:00
lit.site.cfg.py.in [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
lldbtest.py [lldb/lua] Supplement Lua bindings for lldb module 2021-10-12 22:10:21 +08:00
use_lldb_suite.py [lldb/test] Use realpath consistently for test root file paths. 2020-08-05 11:35:37 -07:00