LLDB mainline
linux/Host.h
Go to the documentation of this file.
1//===-- Host.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_HOST_H
10#define LLDB_HOST_LINUX_HOST_H
11
12#include "lldb/lldb-types.h"
13#include <optional>
14
15namespace lldb_private {
16
17// Get PID (i.e. the primary thread ID) corresponding to the specified TID.
18std::optional<lldb::pid_t> getPIDForTID(lldb::pid_t tid);
19
20} // namespace lldb_private
21
22#endif // #ifndef LLDB_HOST_LINUX_HOST_H
A class that represents a running process on the host machine.
std::optional< lldb::pid_t > getPIDForTID(lldb::pid_t tid)
Definition: linux/Host.cpp:420
uint64_t pid_t
Definition: lldb-types.h:83