PlatformFreeBSD.cpp (321369) | PlatformFreeBSD.cpp (322326) |
---|---|
1//===-- PlatformFreeBSD.cpp -------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 300 unchanged lines hidden (view full) --- 309bool PlatformFreeBSD::CanDebugProcess() { 310 return false; 311} 312 313void PlatformFreeBSD::CalculateTrapHandlerSymbolNames() { 314 m_trap_handlers.push_back(ConstString("_sigtramp")); 315} 316 | 1//===-- PlatformFreeBSD.cpp -------------------------------------*- C++ -*-===// 2// 3// The LLVM Compiler Infrastructure 4// 5// This file is distributed under the University of Illinois Open Source 6// License. See LICENSE.TXT for details. 7// 8//===----------------------------------------------------------------------===// --- 300 unchanged lines hidden (view full) --- 309bool PlatformFreeBSD::CanDebugProcess() { 310 return false; 311} 312 313void PlatformFreeBSD::CalculateTrapHandlerSymbolNames() { 314 m_trap_handlers.push_back(ConstString("_sigtramp")); 315} 316 |
317uint64_t PlatformFreeBSD::ConvertMmapFlagsToPlatform(const ArchSpec &arch, 318 unsigned flags) { | 317MmapArgList PlatformFreeBSD::GetMmapArgumentList(const ArchSpec &arch, 318 addr_t addr, addr_t length, 319 unsigned prot, unsigned flags, 320 addr_t fd, addr_t offset) { |
319 uint64_t flags_platform = 0; 320 321 if (flags & eMmapFlagsPrivate) 322 flags_platform |= MAP_PRIVATE; 323 if (flags & eMmapFlagsAnon) 324 flags_platform |= MAP_ANON; | 321 uint64_t flags_platform = 0; 322 323 if (flags & eMmapFlagsPrivate) 324 flags_platform |= MAP_PRIVATE; 325 if (flags & eMmapFlagsAnon) 326 flags_platform |= MAP_ANON; |
325 return flags_platform; | 327 328 MmapArgList args({addr, length, prot, flags_platform, fd, offset}); 329 if (arch.GetTriple().getArch() == llvm::Triple::x86) 330 args.push_back(0); 331 return args; |
326} | 332} |