================ @@ -340,11 +341,101 @@ def find_matching_slice(self): print( ( "error\n error: unable to locate '%s' with UUID %s" - % (self.path, self.get_normalized_uuid_string()) + % (path, self.get_normalized_uuid_string()) ) ) return False + def patch_binary_search_path(self): + home = os.path.expanduser("~") + + patched_search_path = self.path.replace("/Users/USER", home) + + if "*" in patched_search_path: + patched_search_path = patched_search_path[ + : patched_search_path.index("*") + ] + + return patched_search_path + + def find_binary_with_speculative_path(self, target_uuid): + search_path = self.patch_binary_search_path() + + target_uuid = target_uuid.lower() + stop_flag = {"found": False} ---------------- medismailben wrote:
I've looked it up and apparently setting a variable in dictionary in python is an atomic operation but I'll update `thread.Event` to make it more obvious. https://github.com/llvm/llvm-project/pull/154975 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits