[Lldb-commits] [PATCH] D120755: Fix race condition when launching and attaching.This is a modified version of a previous patch that was reverted: https://reviews.llvm.org/D119797This version only waits for the process to stop when using "launchCommands" or "attachCommands"...

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Mar 7 11:51:53 PST 2022


clayborg added a comment.

The problem seemed to be we had a test case that was kind of bogus that was running attach commands with:

"target create ..." followed by "process launch". There was no synchronization before, but now that is. The problem is that the "process launch" was run, but the process could run to the exit stage before we synchronized with it. So it was correctly saying that the attach failed, because we weren't able to actually attach to the process as it had run to the exit point by the time we tried to attach. Fix this by adding "--stop-at-entry" to the "process launch" command which will ensure it does stop and it validly attached.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120755



More information about the lldb-commits mailing list