LLDB mainline
posix/Support.h
Go to the documentation of this file.
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_POSIX_SUPPORT_H
10#define LLDB_HOST_POSIX_SUPPORT_H
11
12#include "llvm/ADT/Twine.h"
13#include "llvm/Support/ErrorOr.h"
14#include "llvm/Support/MemoryBuffer.h"
15#include <memory>
16
17namespace lldb_private {
18
19llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
20getProcFile(::pid_t pid, const llvm::Twine &file);
21
22llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
23getProcFile(const llvm::Twine &file);
24
25} // namespace lldb_private
26
27#endif // #ifndef LLDB_HOST_POSIX_SUPPORT_H
A class that represents a running process on the host machine.
llvm::ErrorOr< std::unique_ptr< llvm::MemoryBuffer > > getProcFile(::pid_t pid, ::pid_t tid, const llvm::Twine &file)