[Lldb-commits] [PATCH] D121831: Modifying expression code in MakeLoadImageUtilityFunction to be more consistent
Shafik Yaghmour via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Thu Mar 17 08:53:04 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG33d74170a36e: [LLDB] Modifying expression code in MakeLoadImageUtilityFunction to be moreā¦ (authored by shafik).
Herald added a project: LLDB.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121831/new/
https://reviews.llvm.org/D121831
Files:
lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
Index: lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
===================================================================
--- lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
+++ lldb/source/Plugins/Platform/POSIX/PlatformPOSIX.cpp
@@ -560,8 +560,8 @@
const char *error_str;
};
- extern void *memcpy(void *, const void *, size_t size);
- extern size_t strlen(const char *);
+ extern "C" void *memcpy(void *, const void *, size_t size);
+ extern "C" size_t strlen(const char *);
void * __lldb_dlopen_wrapper (const char *name,
@@ -608,7 +608,7 @@
DiagnosticManager diagnostics;
auto utility_fn_or_error = process->GetTarget().CreateUtilityFunction(
- std::move(expr), dlopen_wrapper_name, eLanguageTypeObjC, exe_ctx);
+ std::move(expr), dlopen_wrapper_name, eLanguageTypeC_plus_plus, exe_ctx);
if (!utility_fn_or_error) {
std::string error_str = llvm::toString(utility_fn_or_error.takeError());
error.SetErrorStringWithFormat("dlopen error: could not create utility"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121831.416197.patch
Type: text/x-patch
Size: 1033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220317/cd37e74c/attachment.bin>
More information about the lldb-commits
mailing list