[Lldb-commits] [lldb] [lldb] add stop-at-user-entry option to process launch (PR #67019)

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 3 10:29:34 PDT 2023


=?utf-8?q?José?= L. Junior <jljuniorpb at gmail.com>,
=?utf-8?q?José?= L. Junior <jljuniorpb at gmail.com>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/67019/lldb at github.com>


================
@@ -38,7 +41,13 @@ Status CommandOptionsProcessLaunch::SetOptionValue(
   case 's': // Stop at program entry point
     launch_info.GetFlags().Set(eLaunchFlagStopAtEntry);
     break;
-
+  case 'm': // Stop at user entry point
+  {
+    TargetSP target_sp =
+        execution_context ? execution_context->GetTargetSP() : TargetSP();
----------------
JDevlieghere wrote:

There's another option below (`'a'`) that also needs the `target_sp`. Let's hoist this out of the switch and reuse it in all the options. 

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


More information about the lldb-commits mailing list