[lldb] [llgs] Remove not-really-used m_inferior_prev_state
authorMichał Górny <mgorny@moritz.systems>
Thu, 30 Jun 2022 05:32:27 +0000 (07:32 +0200)
committerMichał Górny <mgorny@moritz.systems>
Thu, 14 Jul 2022 17:25:54 +0000 (19:25 +0200)
commit06b3f27fedd5a26ad571c093ccf47d0c11b1e913
tree692561832fb9f5f3b025d58d602e441594f33beb
parent77350198d344f7c07ef221e967613c9e65f88aca
[lldb] [llgs] Remove not-really-used m_inferior_prev_state

Remove m_inferior_prev_state that's not suitable for multiprocess
debugging and that does not seem to be really used at all.

The only use of the variable right now is to "prevent" sending the stop
reason after attach/launch.  However, this code is never actually run
since none of the process plugins actually use eStateLaunching or
eStateAttaching.  Through adding an assert, I've confirmed that it's
never hit in any of the LLDB tests or while attaching/launching debugged
process via lldb-server and via lldb CLI.

Differential Revision: https://reviews.llvm.org/D128878
Sponsored by: The FreeBSD Foundation
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h