This is an archive of the discontinued LLVM Phabricator instance.

[lldb] [llgs] Remove not-really-used m_inferior_prev_state
ClosedPublic

Authored by mgorny on Jun 29 2022, 10:40 PM.

Details

Summary

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.

Sponsored by: The FreeBSD Foundation

Diff Detail

Event Timeline

mgorny created this revision.Jun 29 2022, 10:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 29 2022, 10:40 PM
Herald added a subscriber: arichardson. · View Herald Transcript
mgorny requested review of this revision.Jun 29 2022, 10:40 PM
labath accepted this revision.Jun 30 2022, 1:31 AM
This revision is now accepted and ready to land.Jun 30 2022, 1:31 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 14 2022, 10:26 AM