Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / source / Plugins / Process / Utility / InferiorCallPOSIX.h
blob3623e10194f984ed8406aeb288bc76943ad5d104
1 //===-- InferiorCallPOSIX.h -------------------------------------*- C++ -*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
9 #ifndef LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_INFERIORCALLPOSIX_H
10 #define LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_INFERIORCALLPOSIX_H
12 // Inferior execution of POSIX functions.
14 #include "lldb/lldb-types.h"
16 namespace lldb_private {
18 class Process;
20 enum MmapProt {
21 eMmapProtNone = 0,
22 eMmapProtExec = 1,
23 eMmapProtRead = 2,
24 eMmapProtWrite = 4
27 bool InferiorCallMmap(Process *proc, lldb::addr_t &allocated_addr,
28 lldb::addr_t addr, lldb::addr_t length, unsigned prot,
29 unsigned flags, lldb::addr_t fd, lldb::addr_t offset);
31 bool InferiorCallMunmap(Process *proc, lldb::addr_t addr, lldb::addr_t length);
33 } // namespace lldb_private
35 #endif // LLDB_SOURCE_PLUGINS_PROCESS_UTILITY_INFERIORCALLPOSIX_H