aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
diff options
context:
space:
mode:
authorMichał Górny <mgorny@moritz.systems>2022-06-09 18:54:50 +0200
committerMichał Górny <mgorny@moritz.systems>2022-06-20 19:42:21 +0200
commitf8c6de8dbbd7ee0d037e07a94e3c5a370c2edaff (patch)
tree1a8c70f8206872fbb5a67b0add03088196fc8741 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
parentaf93f123b92eb3591d0667c24db9cd325d670912 (diff)
downloadllvm-f8c6de8dbbd7ee0d037e07a94e3c5a370c2edaff.zip
llvm-f8c6de8dbbd7ee0d037e07a94e3c5a370c2edaff.tar.gz
llvm-f8c6de8dbbd7ee0d037e07a94e3c5a370c2edaff.tar.bz2
[lldb] [llgs] Refactor SendStopReasonForState for multiprocess
Refactor GDBRemoteCommunicationServerLLGS::SendStopReasonForState() to accept process as an argument rather than hardcoding m_current_process, in order to make it work correctly for multiprocess scenarios. Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.llvm.org/D127497
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h')
-rw-r--r--lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
index 8c6d9ad..e226714 100644
--- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
+++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
@@ -116,7 +116,8 @@ protected:
PacketResult SendStopReplyPacketForThread(NativeProcessProtocol &process,
lldb::tid_t tid);
- PacketResult SendStopReasonForState(lldb::StateType process_state);
+ PacketResult SendStopReasonForState(NativeProcessProtocol &process,
+ lldb::StateType process_state);
PacketResult Handle_k(StringExtractorGDBRemote &packet);