[Lldb-commits] [lldb] [lldb][PlatformDarwin][NFCI] Factor out dSYM script auto-loading into helper function (PR #182002)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Feb 18 05:24:02 PST 2026


================
@@ -199,6 +199,99 @@ PlatformDarwin::PutFile(const lldb_private::FileSpec &source,
   return PlatformPOSIX::PutFile(source, destination, uid, gid);
 }
 
+static FileSpecList LoadExecutableScriptingResourceFromDSYM(
+    Stream &feedback_stream, FileSpec module_spec, const Target &target,
+    const FileSpec &symfile_spec, ) {
+  FileSpecList file_list;
+  while (module_spec.GetFilename()) {
+    std::string module_basename(module_spec.GetFilename().GetCString());
+    std::string original_module_basename(module_basename);
+
+    bool was_keyword = false;
+
+    // FIXME: for Python, we cannot allow certain characters in
+    // module
+    // filenames we import. Theoretically, different scripting
+    // languages may have different sets of forbidden tokens in
+    // filenames, and that should be dealt with by each
+    // ScriptInterpreter. For now, we just replace dots with
+    // underscores, but if we ever support anything other than
+    // Python we will need to rework this
----------------
Michael137 wrote:

done

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


More information about the lldb-commits mailing list