[Lldb-commits] [lldb] [lldb] Improved lldb-server stability for remote launching (PR #100659)

Dmitry Vasilyev via lldb-commits lldb-commits at lists.llvm.org
Thu Jul 25 15:53:06 PDT 2024


================
@@ -201,7 +201,7 @@ struct ForkLaunchInfo {
   execve(info.argv[0], const_cast<char *const *>(info.argv), info.envp);
 
 #if defined(__linux__)
-  if (errno == ETXTBSY) {
+  for (int i = 0; i < 50; ++i) {
----------------
slydiman wrote:

I think it is redundant. Currently lldb-server contains a hardcoded timeout in many places. Note the total timeout 10 seconds will cause the error "Sending vRun packet failed". So 5 seconds is good enough for the stable connection and do the trick on slow machines.

https://github.com/llvm/llvm-project/pull/100659


More information about the lldb-commits mailing list