[Lldb-commits] [PATCH] D98822: [lldb] follow-fork/vfork support [WIP]

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 18 14:22:19 PDT 2021


mgorny added a comment.

In D98822#2635647 <https://reviews.llvm.org/D98822#2635647>, @labath wrote:

> Seems mostly ok. The getPidForTid business does not seem completely ideal, though. I think it may be cleaner to keep the threads for which we have received the creation event in some kind of a purgatory list until we receive the corresponding parent event (which will clarify what kind of a child we are dealing with).
>
> We actually did something like that a very long time ago, but I removed it for being too complicated. Now, I think it may be worth going back to it.
>
> BTW, this made me realize of a funky scenario we may need to handle somehow. I think it's possible (on linux) that two threads will initiate a fork operation concurrently, and so by the time that everything stops, we end up with three (or more) processes...

I'm actually working on such a thing right now, though initially for forks. I can surely extend it to threads later. I will update the diff with it in a few minutes.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98822/new/

https://reviews.llvm.org/D98822



More information about the lldb-commits mailing list