[Lldb-commits] [lldb] c4d7c42 - [LLDB][Darwin] Clarify which API call enables memory tagging
Julian Lettner via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 15 10:25:52 PDT 2025
Author: Julian Lettner
Date: 2025-10-15T10:25:42-07:00
New Revision: c4d7c42b1de2117f104e202ac0f4b808bce4d28b
URL: https://github.com/llvm/llvm-project/commit/c4d7c42b1de2117f104e202ac0f4b808bce4d28b
DIFF: https://github.com/llvm/llvm-project/commit/c4d7c42b1de2117f104e202ac0f4b808bce4d28b.diff
LOG: [LLDB][Darwin] Clarify which API call enables memory tagging
Added:
Modified:
lldb/source/Host/macosx/objcxx/Host.mm
Removed:
################################################################################
diff --git a/lldb/source/Host/macosx/objcxx/Host.mm b/lldb/source/Host/macosx/objcxx/Host.mm
index 71208927e7c94..96a282c64e44c 100644
--- a/lldb/source/Host/macosx/objcxx/Host.mm
+++ b/lldb/source/Host/macosx/objcxx/Host.mm
@@ -1221,13 +1221,12 @@ static Status LaunchProcessPosixSpawn(const char *exe_path,
//
using posix_spawnattr_set_use_sec_transition_shims_np_t =
int (*)(posix_spawnattr_t *attr, uint32_t flags);
- auto posix_spawnattr_set_use_sec_transition_shims_np_fn =
+ auto posix_spawnattr_enable_memory_tagging_fn =
(posix_spawnattr_set_use_sec_transition_shims_np_t)dlsym(
RTLD_DEFAULT, "posix_spawnattr_set_use_sec_transition_shims_np");
- if (posix_spawnattr_set_use_sec_transition_shims_np_fn) {
- error =
- Status(posix_spawnattr_set_use_sec_transition_shims_np_fn(&attr, 0),
- eErrorTypePOSIX);
+ if (posix_spawnattr_enable_memory_tagging_fn) {
+ error = Status(posix_spawnattr_enable_memory_tagging_fn(&attr, 0),
+ eErrorTypePOSIX);
if (error.Fail()) {
LLDB_LOG(log,
"error: {0}, "
More information about the lldb-commits
mailing list