Path: blob/main/contrib/llvm-project/lldb/source/Plugins/Process/Utility/InferiorCallPOSIX.h
39642 views
//===-- InferiorCallPOSIX.h -------------------------------------*- C++ -*-===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_INFERIORCALLPOSIX_H9#define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_INFERIORCALLPOSIX_H1011// Inferior execution of POSIX functions.1213#include "lldb/lldb-types.h"1415namespace lldb_private {1617class Process;1819enum MmapProt {20eMmapProtNone = 0,21eMmapProtExec = 1,22eMmapProtRead = 2,23eMmapProtWrite = 424};2526bool InferiorCallMmap(Process *proc, lldb::addr_t &allocated_addr,27lldb::addr_t addr, lldb::addr_t length, unsigned prot,28unsigned flags, lldb::addr_t fd, lldb::addr_t offset);2930bool InferiorCallMunmap(Process *proc, lldb::addr_t addr, lldb::addr_t length);3132} // namespace lldb_private3334#endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_INFERIORCALLPOSIX_H353637