diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2021-11-19 20:06:13 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2021-11-19 20:06:13 +0000 |
commit | c0981da47d5696fe36474fcf86b4ce03ae3ff818 (patch) | |
tree | f42add1021b9f2ac6a69ac7cf6c4499962739a45 /lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | |
parent | 344a3780b2e33f6ca763666c380202b18aab72a3 (diff) |
Diffstat (limited to 'lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h')
-rw-r--r-- | lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h index 4a594cf29a08..7800cf03af8e 100644 --- a/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h +++ b/lldb/source/Plugins/OperatingSystem/Python/OperatingSystemPython.h @@ -13,11 +13,10 @@ #if LLDB_ENABLE_PYTHON +#include "lldb/Target/DynamicRegisterInfo.h" #include "lldb/Target/OperatingSystem.h" #include "lldb/Utility/StructuredData.h" -class DynamicRegisterInfo; - namespace lldb_private { class ScriptInterpreter; } @@ -37,14 +36,12 @@ public: static void Terminate(); - static lldb_private::ConstString GetPluginNameStatic(); + static llvm::StringRef GetPluginNameStatic() { return "python"; } - static const char *GetPluginDescriptionStatic(); + static llvm::StringRef GetPluginDescriptionStatic(); // lldb_private::PluginInterface Methods - lldb_private::ConstString GetPluginName() override; - - uint32_t GetPluginVersion() override; + llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); } // lldb_private::OperatingSystem Methods bool UpdateThreadList(lldb_private::ThreadList &old_thread_list, @@ -74,14 +71,14 @@ protected: lldb_private::ThreadList &old_thread_list, std::vector<bool> &core_used_map, bool *did_create_ptr); - DynamicRegisterInfo *GetDynamicRegisterInfo(); + lldb_private::DynamicRegisterInfo *GetDynamicRegisterInfo(); lldb::ValueObjectSP m_thread_list_valobj_sp; - std::unique_ptr<DynamicRegisterInfo> m_register_info_up; + std::unique_ptr<lldb_private::DynamicRegisterInfo> m_register_info_up; lldb_private::ScriptInterpreter *m_interpreter; lldb_private::StructuredData::ObjectSP m_python_object_sp; }; -#endif +#endif // LLDB_ENABLE_PYTHON #endif // liblldb_OperatingSystemPython_h_ |