xref: /llvm-project/lldb/include/lldb/Interpreter/Interfaces/OperatingSystemInterface.h (revision cb82771c96d7055d89ca67f383e6fb3c9aced178)
1 //===-- OperatingSystemInterface.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_INTERPRETER_INTERFACES_OPERATINGSYSTEMINTERFACE_H
10 #define LLDB_INTERPRETER_INTERFACES_OPERATINGSYSTEMINTERFACE_H
11 
12 #include "ScriptedThreadInterface.h"
13 #include "lldb/Core/StructuredDataImpl.h"
14 
15 #include "lldb/lldb-private.h"
16 
17 namespace lldb_private {
18 class OperatingSystemInterface : virtual public ScriptedThreadInterface {
19 public:
20   virtual StructuredData::DictionarySP CreateThread(lldb::tid_t tid,
21                                                     lldb::addr_t context) {
22     return {};
23   }
24 
25   virtual StructuredData::ArraySP GetThreadInfo() { return {}; }
26 
27   virtual std::optional<std::string> GetRegisterContextForTID(lldb::tid_t tid) {
28     return std::nullopt;
29   }
30 
31   virtual std::optional<bool> DoesPluginReportAllThreads() { return {}; }
32 };
33 } // namespace lldb_private
34 
35 #endif // LLDB_INTERPRETER_INTERFACES_OPERATINGSYSTEMINTERFACE_H
36