[Lldb-commits] [lldb] [lldb][windows] add attach by name capability (PR #173015)
Saleem Abdulrasool via lldb-commits
lldb-commits at lists.llvm.org
Fri Dec 19 08:42:47 PST 2025
================
@@ -227,6 +229,56 @@ ProcessWindows::DoAttachToProcessWithID(lldb::pid_t pid,
return error;
}
+Status ProcessWindows::DoAttachToProcessWithName(
+ const char *process_name, const ProcessAttachInfo &attach_info) {
+ Status error;
+ Clear();
+
+ if (!process_name || process_name[0] == '\0') {
+ error = Status::FromErrorString("Invalid process name");
+ return error;
+ }
----------------
compnerd wrote:
This can likely be hoisted before the `Clear()`.
https://github.com/llvm/llvm-project/pull/173015
More information about the lldb-commits
mailing list