diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2021-08-22 19:00:43 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2021-11-13 20:39:49 +0000 | 
| commit | fe6060f10f634930ff71b7c50291ddc610da2475 (patch) | |
| tree | 1483580c790bd4d27b6500a7542b5ee00534d3cc /contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h | |
| parent | b61bce17f346d79cecfd8f195a64b10f77be43b1 (diff) | |
| parent | 344a3780b2e33f6ca763666c380202b18aab72a3 (diff) | |
Diffstat (limited to 'contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h')
| -rw-r--r-- | contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h | 29 | 
1 files changed, 24 insertions, 5 deletions
| diff --git a/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h b/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h index 1130ceee3c20..808000b833ec 100644 --- a/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h +++ b/contrib/llvm-project/lldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h @@ -9,6 +9,9 @@  #ifndef liblldb_ScriptInterpreterLua_h_  #define liblldb_ScriptInterpreterLua_h_ +#include <vector> + +#include "lldb/Breakpoint/WatchpointOptions.h"  #include "lldb/Core/StructuredDataImpl.h"  #include "lldb/Interpreter/ScriptInterpreter.h"  #include "lldb/Utility/Status.h" @@ -40,7 +43,8 @@ public:    void ExecuteInterpreterLoop() override; -  bool LoadScriptingModule(const char *filename, bool init_session, +  bool LoadScriptingModule(const char *filename, +                           const LoadScriptOptions &options,                             lldb_private::Status &error,                             StructuredData::ObjectSP *module_sp = nullptr,                             FileSpec extra_search_dir = {}) override; @@ -61,6 +65,10 @@ public:                                           lldb::user_id_t break_id,                                           lldb::user_id_t break_loc_id); +  static bool WatchpointCallbackFunction(void *baton, +                                         StoppointCallbackContext *context, +                                         lldb::user_id_t watch_id); +    // PluginInterface protocol    lldb_private::ConstString GetPluginName() override; @@ -72,21 +80,32 @@ public:    llvm::Error LeaveSession();    void CollectDataForBreakpointCommandCallback( -      std::vector<BreakpointOptions *> &bp_options_vec, +      std::vector<std::reference_wrapper<BreakpointOptions>> &bp_options_vec,        CommandReturnObject &result) override; -  Status SetBreakpointCommandCallback(BreakpointOptions *bp_options, +  void +  CollectDataForWatchpointCommandCallback(WatchpointOptions *wp_options, +                                          CommandReturnObject &result) override; + +  Status SetBreakpointCommandCallback(BreakpointOptions &bp_options,                                        const char *command_body_text) override; +  void SetWatchpointCommandCallback(WatchpointOptions *wp_options, +                                    const char *command_body_text) override; +    Status SetBreakpointCommandCallbackFunction( -      BreakpointOptions *bp_options, const char *function_name, +      BreakpointOptions &bp_options, const char *function_name,        StructuredData::ObjectSP extra_args_sp) override;  private:    std::unique_ptr<Lua> m_lua;    bool m_session_is_active = false; -  Status RegisterBreakpointCallback(BreakpointOptions *bp_options, +  Status RegisterBreakpointCallback(BreakpointOptions &bp_options, +                                    const char *command_body_text, +                                    StructuredData::ObjectSP extra_args_sp); + +  Status RegisterWatchpointCallback(WatchpointOptions *wp_options,                                      const char *command_body_text,                                      StructuredData::ObjectSP extra_args_sp);  }; | 
