=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>,
=?utf-8?q?Jos=C3=A9?= L. Junior <[email protected]>
Message-ID:
In-Reply-To: <llvm/llvm-project/pull/67019/[email protected]>
================
@@ -38,7 +40,40 @@ 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();
+ ModuleSP main_module_sp = target_sp->GetExecutableModule();
+ FileSpecList shared_lib_filter;
+ shared_lib_filter.Append(main_module_sp->GetFileSpec());
+ llvm::SetVector<std::string, std::vector<std::string>,
+ std::unordered_set<std::string>>
+ entryPointNamesSet;
+ for (LanguageType lang_type : Language::GetSupportedLanguages()) {
+ Language *lang = Language::FindPlugin(lang_type);
+ if (lang) {
----------------
medismailben wrote:
You could inverse the condition and return early.
https://github.com/llvm/llvm-project/pull/67019
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits