Lines Matching full:lldb
9 #include "lldb/Expression/LLVMUserExpression.h"
10 #include "lldb/Core/Module.h"
11 #include "lldb/Expression/DiagnosticManager.h"
12 #include "lldb/Expression/ExpressionVariable.h"
13 #include "lldb/Expression/IRExecutionUnit.h"
14 #include "lldb/Expression/IRInterpreter.h"
15 #include "lldb/Expression/Materializer.h"
16 #include "lldb/Host/HostInfo.h"
17 #include "lldb/Symbol/Block.h"
18 #include "lldb/Symbol/Function.h"
19 #include "lldb/Symbol/ObjectFile.h"
20 #include "lldb/Symbol/SymbolVendor.h"
21 #include "lldb/Symbol/Type.h"
22 #include "lldb/Symbol/VariableList.h"
23 #include "lldb/Target/ABI.h"
24 #include "lldb/Target/ExecutionContext.h"
25 #include "lldb/Target/Process.h"
26 #include "lldb/Target/StackFrame.h"
27 #include "lldb/Target/Target.h"
28 #include "lldb/Target/ThreadPlan.h"
29 #include "lldb/Target/ThreadPlanCallUserExpression.h"
30 #include "lldb/Utility/ConstString.h"
31 #include "lldb/Utility/ErrorMessages.h"
32 #include "lldb/Utility/LLDBLog.h"
33 #include "lldb/Utility/Log.h"
34 #include "lldb/Utility/StreamString.h"
35 #include "lldb/ValueObject/ValueObjectConstResult.h"
37 using namespace lldb;
57 lldb::ModuleSP jit_module_sp(m_jit_module_wp.lock());
63 lldb::ExpressionResults
67 lldb::UserExpressionSP &shared_ptr_to_me,
68 lldb::ExpressionVariableSP &result) {
76 lldb::eSeverityError,
78 return lldb::eExpressionSetupError;
81 lldb::addr_t struct_address = LLDB_INVALID_ADDRESS;
86 lldb::eSeverityError,
89 return lldb::eExpressionSetupError;
92 lldb::addr_t function_stack_bottom = LLDB_INVALID_ADDRESS;
93 lldb::addr_t function_stack_top = LLDB_INVALID_ADDRESS;
101 lldb::eSeverityError, "supposed to interpret, but nothing is there");
102 return lldb::eExpressionSetupError;
107 std::vector<lldb::addr_t> args;
110 diagnostic_manager.Printf(lldb::eSeverityError,
113 return lldb::eExpressionSetupError;
124 diagnostic_manager.Printf(lldb::eSeverityError,
127 return lldb::eExpressionDiscarded;
131 diagnostic_manager.Printf(lldb::eSeverityError,
134 return lldb::eExpressionSetupError;
139 lldb::tid_t expr_thread_id = exe_ctx.GetThreadRef().GetID();
143 std::vector<lldb::addr_t> args;
146 diagnostic_manager.Printf(lldb::eSeverityError,
149 return lldb::eExpressionSetupError;
152 lldb::ThreadPlanSP call_plan_sp(new ThreadPlanCallUserExpression(
158 diagnostic_manager.PutString(lldb::eSeverityError, ss.GetString());
159 return lldb::eExpressionSetupError;
165 lldb::addr_t function_stack_pointer =
177 lldb::ExpressionResults execution_result =
187 if (execution_result == lldb::eExpressionInterrupted ||
188 execution_result == lldb::eExpressionHitBreakpoint) {
190 const char *explanation = execution_result == lldb::eExpressionInterrupted
200 diagnostic_manager.Printf(lldb::eSeverityError,
204 diagnostic_manager.Printf(lldb::eSeverityError,
207 if ((execution_result == lldb::eExpressionInterrupted &&
209 (execution_result == lldb::eExpressionHitBreakpoint &&
215 if (execution_result == lldb::eExpressionHitBreakpoint)
226 if (execution_result == lldb::eExpressionStoppedForDebug) {
228 lldb::eSeverityInfo,
236 if (execution_result == lldb::eExpressionThreadVanished) {
237 diagnostic_manager.Printf(lldb::eSeverityError,
245 if (execution_result != lldb::eExpressionCompleted) {
246 diagnostic_manager.Printf(lldb::eSeverityError,
255 return lldb::eExpressionCompleted;
258 return lldb::eExpressionResultUnavailable;
263 lldb::ExpressionVariableSP &result, lldb::addr_t function_stack_bottom,
264 lldb::addr_t function_stack_top) {
271 diagnostic_manager.Printf(lldb::eSeverityError,
283 diagnostic_manager.Printf(lldb::eSeverityError,
302 lldb::addr_t &struct_address) {
303 lldb::TargetSP target;
304 lldb::ProcessSP process;
305 lldb::StackFrameSP frame;
309 lldb::eSeverityError,
327 lldb::ePermissionsReadable | lldb::ePermissionsWritable, policy,
332 lldb::eSeverityError,
357 lldb::ePermissionsReadable | lldb::ePermissionsWritable,
364 lldb::eSeverityError,
377 diagnostic_manager.Printf(lldb::eSeverityError,