diff options
| author | Michał Górny <mgorny@moritz.systems> | 2021-04-14 11:56:09 +0200 |
|---|---|---|
| committer | Michał Górny <mgorny@moritz.systems> | 2021-07-02 14:36:17 +0200 |
| commit | 02ef0f5ab483875b7b6b38e24b245e4fd4053959 (patch) | |
| tree | 15c7dddea23d10ff4821633cb9acafe52978d9e6 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | cdca1785d35f41ef154d7271bf97c4d1d0e69995 (diff) | |
[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
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
