diff options
author | Augusto Noronha <augusto2112@me.com> | 2022-07-23 15:37:15 -0700 |
---|---|---|
committer | Augusto Noronha <augusto2112@me.com> | 2022-07-23 15:37:26 -0700 |
commit | 2622c5e212646d1c8d6a43444d7c5b551f0221ad (patch) | |
tree | 18b378da408bb442f0557bc8085d0655d9b176ff /lldb | |
parent | [LegacyPM] Remove {,PostInline}EntryExitInstrumenterPass (diff) | |
download | llvm-project-2622c5e212646d1c8d6a43444d7c5b551f0221ad.tar.gz llvm-project-2622c5e212646d1c8d6a43444d7c5b551f0221ad.tar.bz2 llvm-project-2622c5e212646d1c8d6a43444d7c5b551f0221ad.zip |
[lldb] Adapt lldb tests to changes in 71cdb8c6f144
Diffstat (limited to 'lldb')
-rw-r--r-- | lldb/test/API/functionalities/dlopen_other_executable/main.c | 2 | ||||
-rw-r--r-- | lldb/test/API/macosx/ignore_exceptions/main.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/test/API/functionalities/dlopen_other_executable/main.c b/lldb/test/API/functionalities/dlopen_other_executable/main.c index 8f21e862a2b5..f48f6177e7db 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 682c5f23627e..b9513aa35b3e 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; |