1//===-- Support.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//===----------------------------------------------------------------------===//
8
9#ifndef LLDB_HOST_LINUX_SUPPORT_H
10#define LLDB_HOST_LINUX_SUPPORT_H
11
12#include "llvm/Support/ErrorOr.h"
13#include "llvm/Support/MemoryBuffer.h"
14#include <memory>
15
16namespace lldb_private {
17
18llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
19getProcFile(::pid_t pid, ::pid_t tid, const llvm::Twine &file);
20
21llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
22getProcFile(::pid_t pid, const llvm::Twine &file);
23
24llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
25getProcFile(const llvm::Twine &file);
26
27} // namespace lldb_private
28
29#endif // #ifndef LLDB_HOST_LINUX_SUPPORT_H
30

source code of lldb/include/lldb/Host/linux/Support.h