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 "llvm/ADT/Optional.h"
14 
15 namespace lldb_private {
16 
17 // Get PID (i.e. the primary thread ID) corresponding to the specified TID.
18 llvm::Optional<lldb::pid_t> getPIDForTID(lldb::pid_t tid);
19 
20 } // namespace lldb_private
21 
22 #endif // #ifndef LLDB_HOST_LINUX_HOST_H
lldb-types.h
lldb::pid_t
uint64_t pid_t
Definition: lldb-types.h:85
lldb_private
A class that represents a running process on the host machine.
Definition: SBCommandInterpreterRunOptions.h:16
lldb_private::getPIDForTID
llvm::Optional< lldb::pid_t > getPIDForTID(lldb::pid_t tid)
Definition: linux/Host.cpp:318