[Lldb-commits] [lldb] 2622c5e - [lldb] Adapt lldb tests to changes in 71cdb8c6f144
Augusto Noronha via lldb-commits
lldb-commits at lists.llvm.org
Sat Jul 23 15:45:06 PDT 2022
Author: Augusto Noronha
Date: 2022-07-23T15:37:26-07:00
New Revision: 2622c5e212646d1c8d6a43444d7c5b551f0221ad
URL: https://github.com/llvm/llvm-project/commit/2622c5e212646d1c8d6a43444d7c5b551f0221ad
DIFF: https://github.com/llvm/llvm-project/commit/2622c5e212646d1c8d6a43444d7c5b551f0221ad.diff
LOG: [lldb] Adapt lldb tests to changes in 71cdb8c6f144
Added:
Modified:
lldb/test/API/functionalities/dlopen_other_executable/main.c
lldb/test/API/macosx/ignore_exceptions/main.c
Removed:
################################################################################
diff --git a/lldb/test/API/functionalities/dlopen_other_executable/main.c b/lldb/test/API/functionalities/dlopen_other_executable/main.c
index 8f21e862a2b58..f48f6177e7db0 100644
--- a/lldb/test/API/functionalities/dlopen_other_executable/main.c
+++ b/lldb/test/API/functionalities/dlopen_other_executable/main.c
@@ -4,7 +4,7 @@
int main() {
int i = 0; // break here
// dlopen the 'other' test executable.
- int h = dlopen("other", RTLD_LAZY);
+ int h = (int) dlopen("other", RTLD_LAZY);
assert(h && "dlopen failed?");
return i; // break after dlopen
}
diff --git a/lldb/test/API/macosx/ignore_exceptions/main.c b/lldb/test/API/macosx/ignore_exceptions/main.c
index 682c5f23627e0..b9513aa35b3ed 100644
--- a/lldb/test/API/macosx/ignore_exceptions/main.c
+++ b/lldb/test/API/macosx/ignore_exceptions/main.c
@@ -13,7 +13,7 @@ void
saction_handler(int signo, siginfo_t info, void *baton) {
printf("Got into handler.\n"); // stop here in the signal handler
kern_return_t success
- = mach_vm_protect(mach_task_self(), g_int_ptr,
+ = mach_vm_protect(mach_task_self(), (mach_vm_address_t) g_int_ptr,
g_size, 0, VM_PROT_READ|VM_PROT_WRITE);
g_int_ptr[1] = 20;
}
@@ -24,7 +24,7 @@ main()
for (int i = 0; i < 10; i++)
g_int_ptr[i] = i * 10;
- vm_result = mach_vm_protect(mach_task_self(), g_int_ptr, g_size, 0, VM_PROT_NONE);
+ vm_result = mach_vm_protect(mach_task_self(), (mach_vm_address_t) g_int_ptr, g_size, 0, VM_PROT_NONE);
struct sigaction my_action;
sigemptyset(&my_action.sa_mask);
my_action.sa_handler = (void (*)(int)) saction_handler;
More information about the lldb-commits
mailing list