llvm-project/lldb
Michał Górny 02ef0f5ab4 [lldb] [gdb-remote client] Refactor SetCurrentThread*()
Refactor SetCurrentThread() and SetCurrentThreadForRun() to reduce code
duplication and simplify it.  Both methods now call common
SendSetCurrentThreadPacket() that implements the common protocol
exchange part (the only variable is sending `Hg` vs `Hc`) and returns
the selected TID.  The logic is rewritten to use a StreamString
instead of snprintf().

A side effect of the change is that thread-id sent is now zero-padded.
However, this should not have practical impact on the server as both
forms are equivalent.

Differential Revision: https://reviews.llvm.org/D100459
2021-07-02 14:36:17 +02:00
..
bindings Add a corefile style option to process save-core; skinny corefiles 2021-06-20 12:26:54 -07:00
cmake [lldb] add LLDB_SKIP_DSYM option 2021-05-26 09:32:59 -07:00
docs Add a corefile style option to process save-core; skinny corefiles 2021-06-20 12:26:54 -07:00
examples [LLDB][NFC] Remove parameter names from forward declarations from hand written expressions used in heap.py 2021-06-08 14:27:02 -07:00
include/lldb Create synthetic symbol names on demand to improve memory consumption and startup times. 2021-06-29 17:44:33 -07:00
packages/Python [LLDB] dotest.py set selected_platform on remote connection 2021-06-28 21:37:12 +00:00
resources [lldb] Remove stale LLDB-Info.plist 2021-01-08 10:12:16 -08:00
scripts Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk 2021-02-25 11:32:27 +01:00
source [lldb] [gdb-remote client] Refactor SetCurrentThread*() 2021-07-02 14:36:17 +02:00
test [lldb] [test] Add missing category to test_detach_current 2021-07-02 11:44:41 +02:00
third_party/Python/module Revert "[lldb] temporary commit to see why a test is failing only on lldb-aarch64-ubuntu" 2020-08-05 11:55:02 +02:00
tools [LLDB] Silence warnings in cli-wrapper-mpxtable.cpp 2021-06-28 02:36:14 +00:00
unittests [lldb] [gdb-remote client] Refactor SetCurrentThread*() 2021-07-02 14:36:17 +02:00
utils [lldb] Match test dependencies name to other LLVM projects. 2021-05-21 00:10:27 -07:00
.clang-format
.clang-tidy [lldb] Use C++11 default member initializers 2021-06-09 09:43:13 -07:00
.gitignore
CMakeLists.txt [LLDB] Don't use the local python to set a default for LLDB_PYTHON_RELATIVE_PATH when cross compiling. 2021-05-11 14:04:41 +03:00
CODE_OWNERS.txt
LICENSE.TXT
use_lldb_suite_root.py