================
@@ -85,6 +88,13 @@ TargetSP CreateTarget(DebuggerSP &debugger_sp, ArchSpec 
&arch) {
   return target_sp;
 }
 
+static void OverrideTargetProcess(Target *target, lldb::ProcessSP process) {
+  struct TargetHack : public Target {
+    void SetProcess(lldb::ProcessSP process) { m_process_sp = process; }
+  };
+  static_cast<TargetHack *>(target)->SetProcess(process);
+}
+
----------------
DavidSpickett wrote:

Declare this as close to first use as you can.

https://github.com/llvm/llvm-project/pull/169150
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to