labath added a comment.

Looks ok-ish, though I don't feel entirely comfortable approving lldb-vscode 
changes. @wallace, do you have any thoughts on this?



================
Comment at: lldb/tools/lldb-vscode/VSCode.h:152
   bool is_attach;
+  // The process event thread normally responds to process exited events by
+  // shutting down the entire adapter. When we're restarting, we keep the id of
----------------
So, it's not possible to restart a process if it has already terminated? I.e., 
if the debugged process unexpectedly exits, the user will have to restart 
lldb-vscode from scratch (so he can e.g., set a breakpoint in before the exit).


================
Comment at: lldb/tools/lldb-vscode/lldb-vscode.cpp:1983
+  g_vsc.debugger.SetAsync(true);
+  LaunchProcess(*g_vsc.last_launch_or_attach_request);
+
----------------
I have no idea if that's a good idea or not, but I'm wondering if, instead of 
from the last attach request, we should be taking the arguments from lldb. So 
that if the user say changes the `target.run-args` setting, then the new 
restart request will take that into account...


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

https://reviews.llvm.org/D147831

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to