[Lldb-commits] [PATCH] D128152: [lldb] [llgs] Support multiprocess in qfThreadInfo
Michał Górny via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 21 20:42:47 PDT 2022
mgorny marked an inline comment as done.
mgorny added inline comments.
================
Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp:1967
+
+ if (multiprocess) {
+ for (auto &pid_ptr : m_debugged_processes)
----------------
labath wrote:
> without multiprocess extensions, we should never have more than one process, right? Could we just unconditionally use the multiprocess loop here (perhaps with an `assert(m_debugged_processes.size() == 1 || multiprocess)`) ?
Yes, that makes sense. We enable fork & vfork only if multiprocess is supported, so that shouldn't happen unless we deal with broken Process plugin.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D128152/new/
https://reviews.llvm.org/D128152
More information about the lldb-commits
mailing list