From f55b248b8c436e7f9f23b3f18c4295537d9fd12c Mon Sep 17 00:00:00 2001 From: xwx1135370 Date: Mon, 5 Dec 2022 14:05:33 +0800 Subject: [PATCH] [MUSL] ARM-32 bit has no "__lldb_mmap" symbol Signed-off-by: xwx1135370 --- lldb/source/Plugins/Platform/OHOS/PlatformOHOS.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lldb/source/Plugins/Platform/OHOS/PlatformOHOS.cpp b/lldb/source/Plugins/Platform/OHOS/PlatformOHOS.cpp index 68f22d232744..f403740cf48b 100644 --- a/lldb/source/Plugins/Platform/OHOS/PlatformOHOS.cpp +++ b/lldb/source/Plugins/Platform/OHOS/PlatformOHOS.cpp @@ -296,5 +296,5 @@ PlatformOHOS::GetLibdlFunctionDeclarations(lldb_private::Process *process) { } ConstString PlatformOHOS::GetMmapSymbolName(const ArchSpec &arch) { - return arch.GetTriple().isArch32Bit() ? ConstString("__lldb_mmap") : PlatformLinux::GetMmapSymbolName(arch); + return arch.GetTriple().isArch32Bit() ? ConstString("mmap") : PlatformLinux::GetMmapSymbolName(arch); } -- Gitee