Index: source/Plugins/Platform/Linux/PlatformLinux.cpp =================================================================== --- source/Plugins/Platform/Linux/PlatformLinux.cpp +++ source/Plugins/Platform/Linux/PlatformLinux.cpp @@ -937,9 +937,19 @@ PlatformLinux::ConvertMmapFlagsToPlatform(unsigned flags) { uint64_t flags_platform = 0; + uint64_t map_anon=MAP_ANON; + ArchSpec target_arch = HostInfoBase::GetArchitecture(); + + //To get correct flags for MIPS Aricheture + if (target_arch.GetTriple ().getArch () == llvm::Triple::mips64 + || target_arch.GetTriple ().getArch () == llvm::Triple::mips64el + || target_arch.GetTriple ().getArch () == llvm::Triple::mips + || target_arch.GetTriple ().getArch () == llvm::Triple::mipsel) + map_anon = 0x800; + if (flags & eMmapFlagsPrivate) flags_platform |= MAP_PRIVATE; if (flags & eMmapFlagsAnon) - flags_platform |= MAP_ANON; + flags_platform |= map_anon; return flags_platform; }