[Lldb-commits] [PATCH] D70127: [lldb-vscode] Fix a race in test_extra_launch_commands

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 12 15:57:04 PST 2019


clayborg added a comment.

--stop-at-entry only really works for Darwin since its posix_spawn has a flag that will stop it at the entry point before anything executes. On linux, does this flag do anything?



================
Comment at: lldb/packages/Python/lldbsuite/test/tools/lldb-vscode/launch/TestVSCode_launch.py:355
             'br s -f main.c -l %d' % second_line,
-            'run'
+            'process launch --stop-at-entry'
         ]
----------------
This can probably still be racy on linux since I believe --stop-at-entry will launch the process and stop it as soon as possible (unlike a real posix_spawn flag on Darwin...). I wonder if we did a python call like:
```
script lldb.target.Launch(...)
```
As I believe the python interpreter is synchronous by default?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D70127





More information about the lldb-commits mailing list