Extend the SetCurrentThread() method to support specifying an alternate
PID to switch to.  This makes it possible to issue requests to forked
processes.
Details
Diff Detail
- Repository
 - rG LLVM Github Monorepo
 
Event Timeline
Rebase on top of the refactor. Remove m_override_pid in favor of controlling m_curr_pid and m_curr_pid_run.
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | ||
|---|---|---|
| 345–346 | While I was typing that I'm fine either way, I've noticed that the function takes tid+pid but returns pid+tid, so I suppose it could be confusing. I'll switch over to structs.  | |
Thanks! LGTM
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | ||
|---|---|---|
| 589–590 | Can we please make these doxygen comments /// and put them above the variable? The trailing comments really don't work well with the 80-col limit.  | |
I'll do one more test run and push, thanks!
| lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h | ||
|---|---|---|
| 589–590 | Sure, done.  | |
I generally prefer a struct with named fields over an unnamed pair. Do you think that would help readability here?