diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-07-23 20:50:09 +0000 |
commit | f3fbd1c0586ff6ec7895991e6c28f61a503c36a8 (patch) | |
tree | 48d008fd3df8c0e73271a4b18474e0aac6dbfe33 /include/lldb/Expression/UtilityFunction.h | |
parent | 2fc5d2d1dfaf623ce4e24cd8590565902f8c557c (diff) |
Notes
Diffstat (limited to 'include/lldb/Expression/UtilityFunction.h')
-rw-r--r-- | include/lldb/Expression/UtilityFunction.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/include/lldb/Expression/UtilityFunction.h b/include/lldb/Expression/UtilityFunction.h index bee83d8111e41..a78972082c52d 100644 --- a/include/lldb/Expression/UtilityFunction.h +++ b/include/lldb/Expression/UtilityFunction.h @@ -54,8 +54,8 @@ public: //------------------------------------------------------------------ /// Install the utility function into a process /// - /// @param[in] error_stream - /// A stream to print parse errors and warnings to. + /// @param[in] diagnostic_manager + /// A diagnostic manager to print parse errors and warnings to. /// /// @param[in] exe_ctx /// The execution context to install the utility function to. @@ -64,8 +64,8 @@ public: /// True on success (no errors); false otherwise. //------------------------------------------------------------------ virtual bool - Install (Stream &error_stream, ExecutionContext &exe_ctx) = 0; - + Install(DiagnosticManager &diagnostic_manager, ExecutionContext &exe_ctx) = 0; + //------------------------------------------------------------------ /// Check whether the given PC is inside the function /// @@ -139,8 +139,10 @@ public: } // This makes the function caller function. + // Pass in the ThreadSP if you have one available, compilation can end up calling code (e.g. to look up indirect + // functions) and we don't want this to wander onto another thread. FunctionCaller * - MakeFunctionCaller(const CompilerType &return_type, const ValueList &arg_value_list, Error &error); + MakeFunctionCaller(const CompilerType &return_type, const ValueList &arg_value_list, lldb::ThreadSP compilation_thread, Error &error); // This one retrieves the function caller that is already made. If you haven't made it yet, this returns nullptr FunctionCaller * |