Raphael Isemann | 8081428 | 2020-01-24 08:23:27 +0100 | [diff] [blame] | 1 | //===-- SBThreadPlan.cpp --------------------------------------------------===// |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 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 |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 9 | #include "SBReproducerPrivate.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 10 | #include "lldb/API/SBThread.h" |
| 11 | |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 12 | #include "lldb/API/SBFileSpec.h" |
| 13 | #include "lldb/API/SBStream.h" |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 14 | #include "lldb/API/SBStructuredData.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 15 | #include "lldb/API/SBSymbolContext.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 16 | #include "lldb/Breakpoint/BreakpointLocation.h" |
| 17 | #include "lldb/Core/Debugger.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 18 | #include "lldb/Core/StreamFile.h" |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 19 | #include "lldb/Core/StructuredDataImpl.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 20 | #include "lldb/Interpreter/CommandInterpreter.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 21 | #include "lldb/Symbol/CompileUnit.h" |
| 22 | #include "lldb/Symbol/SymbolContext.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 23 | #include "lldb/Target/Process.h" |
| 24 | #include "lldb/Target/Queue.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 25 | #include "lldb/Target/StopInfo.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 26 | #include "lldb/Target/SystemRuntime.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 27 | #include "lldb/Target/Target.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 28 | #include "lldb/Target/Thread.h" |
| 29 | #include "lldb/Target/ThreadPlan.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 30 | #include "lldb/Target/ThreadPlanPython.h" |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 31 | #include "lldb/Target/ThreadPlanStepInRange.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 32 | #include "lldb/Target/ThreadPlanStepInstruction.h" |
| 33 | #include "lldb/Target/ThreadPlanStepOut.h" |
| 34 | #include "lldb/Target/ThreadPlanStepRange.h" |
Pavel Labath | d821c99 | 2018-08-07 11:07:21 +0000 | [diff] [blame] | 35 | #include "lldb/Utility/State.h" |
Zachary Turner | bf9a773 | 2017-02-02 21:39:50 +0000 | [diff] [blame] | 36 | #include "lldb/Utility/Stream.h" |
Pavel Labath | f2a8bcc | 2017-06-27 10:45:31 +0000 | [diff] [blame] | 37 | #include "lldb/Utility/StructuredData.h" |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 38 | |
| 39 | #include "lldb/API/SBAddress.h" |
| 40 | #include "lldb/API/SBDebugger.h" |
| 41 | #include "lldb/API/SBEvent.h" |
| 42 | #include "lldb/API/SBFrame.h" |
| 43 | #include "lldb/API/SBProcess.h" |
| 44 | #include "lldb/API/SBThreadPlan.h" |
| 45 | #include "lldb/API/SBValue.h" |
| 46 | |
Jonas Devlieghere | 796ac80 | 2019-02-11 23:13:08 +0000 | [diff] [blame] | 47 | #include <memory> |
| 48 | |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 49 | using namespace lldb; |
| 50 | using namespace lldb_private; |
| 51 | |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 52 | // Constructors |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 53 | SBThreadPlan::SBThreadPlan() { LLDB_RECORD_CONSTRUCTOR_NO_ARGS(SBThreadPlan); } |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 54 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 55 | SBThreadPlan::SBThreadPlan(const ThreadPlanSP &lldb_object_sp) |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 56 | : m_opaque_wp(lldb_object_sp) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 57 | LLDB_RECORD_CONSTRUCTOR(SBThreadPlan, (const lldb::ThreadPlanSP &), |
| 58 | lldb_object_sp); |
| 59 | } |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 60 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 61 | SBThreadPlan::SBThreadPlan(const SBThreadPlan &rhs) |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 62 | : m_opaque_wp(rhs.m_opaque_wp) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 63 | LLDB_RECORD_CONSTRUCTOR(SBThreadPlan, (const lldb::SBThreadPlan &), rhs); |
| 64 | } |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 65 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 66 | SBThreadPlan::SBThreadPlan(lldb::SBThread &sb_thread, const char *class_name) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 67 | LLDB_RECORD_CONSTRUCTOR(SBThreadPlan, (lldb::SBThread &, const char *), |
| 68 | sb_thread, class_name); |
| 69 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 70 | Thread *thread = sb_thread.get(); |
| 71 | if (thread) |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 72 | m_opaque_wp = |
| 73 | std::make_shared<ThreadPlanPython>(*thread, class_name, nullptr); |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 74 | } |
| 75 | |
| 76 | SBThreadPlan::SBThreadPlan(lldb::SBThread &sb_thread, const char *class_name, |
| 77 | lldb::SBStructuredData &args_data) { |
| 78 | LLDB_RECORD_CONSTRUCTOR(SBThreadPlan, (lldb::SBThread &, const char *, |
| 79 | SBStructuredData &), |
| 80 | sb_thread, class_name, args_data); |
| 81 | |
| 82 | Thread *thread = sb_thread.get(); |
| 83 | if (thread) |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 84 | m_opaque_wp = std::make_shared<ThreadPlanPython>(*thread, class_name, |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 85 | args_data.m_impl_up.get()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 86 | } |
| 87 | |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 88 | // Assignment operator |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 89 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 90 | const lldb::SBThreadPlan &SBThreadPlan::operator=(const SBThreadPlan &rhs) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 91 | LLDB_RECORD_METHOD(const lldb::SBThreadPlan &, |
| 92 | SBThreadPlan, operator=,(const lldb::SBThreadPlan &), rhs); |
| 93 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 94 | if (this != &rhs) |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 95 | m_opaque_wp = rhs.m_opaque_wp; |
Jonas Devlieghere | 306809f | 2019-04-03 21:31:22 +0000 | [diff] [blame] | 96 | return LLDB_RECORD_RESULT(*this); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 97 | } |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 98 | // Destructor |
Jonas Devlieghere | 866b7a6 | 2020-02-17 22:57:06 -0800 | [diff] [blame] | 99 | SBThreadPlan::~SBThreadPlan() = default; |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 100 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 101 | bool SBThreadPlan::IsValid() const { |
| 102 | LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBThreadPlan, IsValid); |
Pavel Labath | 7f5237b | 2019-03-11 13:58:46 +0000 | [diff] [blame] | 103 | return this->operator bool(); |
| 104 | } |
| 105 | SBThreadPlan::operator bool() const { |
| 106 | LLDB_RECORD_METHOD_CONST_NO_ARGS(bool, SBThreadPlan, operator bool); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 107 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 108 | return static_cast<bool>(GetSP()); |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 109 | } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 110 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 111 | void SBThreadPlan::Clear() { |
| 112 | LLDB_RECORD_METHOD_NO_ARGS(void, SBThreadPlan, Clear); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 113 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 114 | m_opaque_wp.reset(); |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 115 | } |
| 116 | |
| 117 | lldb::StopReason SBThreadPlan::GetStopReason() { |
| 118 | LLDB_RECORD_METHOD_NO_ARGS(lldb::StopReason, SBThreadPlan, GetStopReason); |
| 119 | |
| 120 | return eStopReasonNone; |
| 121 | } |
| 122 | |
| 123 | size_t SBThreadPlan::GetStopReasonDataCount() { |
| 124 | LLDB_RECORD_METHOD_NO_ARGS(size_t, SBThreadPlan, GetStopReasonDataCount); |
| 125 | |
| 126 | return 0; |
| 127 | } |
| 128 | |
| 129 | uint64_t SBThreadPlan::GetStopReasonDataAtIndex(uint32_t idx) { |
| 130 | LLDB_RECORD_METHOD(uint64_t, SBThreadPlan, GetStopReasonDataAtIndex, |
| 131 | (uint32_t), idx); |
| 132 | |
| 133 | return 0; |
| 134 | } |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 135 | |
| 136 | SBThread SBThreadPlan::GetThread() const { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 137 | LLDB_RECORD_METHOD_CONST_NO_ARGS(lldb::SBThread, SBThreadPlan, GetThread); |
| 138 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 139 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 140 | if (thread_plan_sp) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 141 | return LLDB_RECORD_RESULT( |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 142 | SBThread(thread_plan_sp->GetThread().shared_from_this())); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 143 | } else |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 144 | return LLDB_RECORD_RESULT(SBThread()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 145 | } |
| 146 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 147 | bool SBThreadPlan::GetDescription(lldb::SBStream &description) const { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 148 | LLDB_RECORD_METHOD_CONST(bool, SBThreadPlan, GetDescription, |
| 149 | (lldb::SBStream &), description); |
| 150 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 151 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 152 | if (thread_plan_sp) { |
| 153 | thread_plan_sp->GetDescription(description.get(), eDescriptionLevelFull); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 154 | } else { |
| 155 | description.Printf("Empty SBThreadPlan"); |
| 156 | } |
| 157 | return true; |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 158 | } |
| 159 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 160 | void SBThreadPlan::SetThreadPlan(const ThreadPlanSP &lldb_object_wp) { |
| 161 | m_opaque_wp = lldb_object_wp; |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 162 | } |
| 163 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 164 | void SBThreadPlan::SetPlanComplete(bool success) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 165 | LLDB_RECORD_METHOD(void, SBThreadPlan, SetPlanComplete, (bool), success); |
| 166 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 167 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 168 | if (thread_plan_sp) |
| 169 | thread_plan_sp->SetPlanComplete(success); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 170 | } |
| 171 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 172 | bool SBThreadPlan::IsPlanComplete() { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 173 | LLDB_RECORD_METHOD_NO_ARGS(bool, SBThreadPlan, IsPlanComplete); |
| 174 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 175 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 176 | if (thread_plan_sp) |
| 177 | return thread_plan_sp->IsPlanComplete(); |
| 178 | return true; |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 179 | } |
| 180 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 181 | bool SBThreadPlan::IsPlanStale() { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 182 | LLDB_RECORD_METHOD_NO_ARGS(bool, SBThreadPlan, IsPlanStale); |
| 183 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 184 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 185 | if (thread_plan_sp) |
| 186 | return thread_plan_sp->IsPlanStale(); |
| 187 | return true; |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 188 | } |
| 189 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 190 | bool SBThreadPlan::IsValid() { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 191 | LLDB_RECORD_METHOD_NO_ARGS(bool, SBThreadPlan, IsValid); |
| 192 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 193 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 194 | if (thread_plan_sp) |
| 195 | return thread_plan_sp->ValidatePlan(nullptr); |
| 196 | return false; |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 197 | } |
| 198 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 199 | // This section allows an SBThreadPlan to push another of the common types of |
| 200 | // plans... |
| 201 | // |
| 202 | // FIXME, you should only be able to queue thread plans from inside the methods |
Adrian Prantl | 0509724 | 2018-04-30 16:49:04 +0000 | [diff] [blame] | 203 | // of a Scripted Thread Plan. Need a way to enforce that. |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 204 | |
| 205 | SBThreadPlan |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 206 | SBThreadPlan::QueueThreadPlanForStepOverRange(SBAddress &sb_start_address, |
| 207 | lldb::addr_t size) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 208 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 209 | QueueThreadPlanForStepOverRange, |
| 210 | (lldb::SBAddress &, lldb::addr_t), sb_start_address, size); |
| 211 | |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 212 | SBError error; |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 213 | return LLDB_RECORD_RESULT( |
| 214 | QueueThreadPlanForStepOverRange(sb_start_address, size, error)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | SBThreadPlan SBThreadPlan::QueueThreadPlanForStepOverRange( |
| 218 | SBAddress &sb_start_address, lldb::addr_t size, SBError &error) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 219 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 220 | QueueThreadPlanForStepOverRange, |
| 221 | (lldb::SBAddress &, lldb::addr_t, lldb::SBError &), |
| 222 | sb_start_address, size, error); |
| 223 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 224 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 225 | if (thread_plan_sp) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 226 | Address *start_address = sb_start_address.get(); |
| 227 | if (!start_address) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 228 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 229 | } |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 230 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 231 | AddressRange range(*start_address, size); |
| 232 | SymbolContext sc; |
| 233 | start_address->CalculateSymbolContext(&sc); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 234 | Status plan_status; |
| 235 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 236 | SBThreadPlan plan = SBThreadPlan( |
| 237 | thread_plan_sp->GetThread().QueueThreadPlanForStepOverRange( |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 238 | false, range, sc, eAllThreads, plan_status)); |
| 239 | |
| 240 | if (plan_status.Fail()) |
| 241 | error.SetErrorString(plan_status.AsCString()); |
Jim Ingham | f7de4b5 | 2020-04-10 15:37:05 -0700 | [diff] [blame] | 242 | else |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 243 | plan.GetSP()->SetPrivate(true); |
| 244 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 245 | return LLDB_RECORD_RESULT(plan); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 246 | } |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 247 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 248 | } |
| 249 | |
| 250 | SBThreadPlan |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 251 | SBThreadPlan::QueueThreadPlanForStepInRange(SBAddress &sb_start_address, |
| 252 | lldb::addr_t size) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 253 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 254 | QueueThreadPlanForStepInRange, |
| 255 | (lldb::SBAddress &, lldb::addr_t), sb_start_address, size); |
| 256 | |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 257 | SBError error; |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 258 | return LLDB_RECORD_RESULT( |
| 259 | QueueThreadPlanForStepInRange(sb_start_address, size, error)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 260 | } |
| 261 | |
| 262 | SBThreadPlan |
| 263 | SBThreadPlan::QueueThreadPlanForStepInRange(SBAddress &sb_start_address, |
| 264 | lldb::addr_t size, SBError &error) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 265 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 266 | QueueThreadPlanForStepInRange, |
| 267 | (lldb::SBAddress &, lldb::addr_t, lldb::SBError &), |
| 268 | sb_start_address, size, error); |
| 269 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 270 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 271 | if (thread_plan_sp) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 272 | Address *start_address = sb_start_address.get(); |
| 273 | if (!start_address) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 274 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 275 | } |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 276 | |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 277 | AddressRange range(*start_address, size); |
| 278 | SymbolContext sc; |
| 279 | start_address->CalculateSymbolContext(&sc); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 280 | |
| 281 | Status plan_status; |
| 282 | SBThreadPlan plan = |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 283 | SBThreadPlan(thread_plan_sp->GetThread().QueueThreadPlanForStepInRange( |
Konrad Kleine | 248a130 | 2019-05-23 11:14:47 +0000 | [diff] [blame] | 284 | false, range, sc, nullptr, eAllThreads, plan_status)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 285 | |
| 286 | if (plan_status.Fail()) |
| 287 | error.SetErrorString(plan_status.AsCString()); |
Jim Ingham | f7de4b5 | 2020-04-10 15:37:05 -0700 | [diff] [blame] | 288 | else |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 289 | plan.GetSP()->SetPrivate(true); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 290 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 291 | return LLDB_RECORD_RESULT(plan); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 292 | } |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 293 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 294 | } |
| 295 | |
| 296 | SBThreadPlan |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 297 | SBThreadPlan::QueueThreadPlanForStepOut(uint32_t frame_idx_to_step_to, |
| 298 | bool first_insn) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 299 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 300 | QueueThreadPlanForStepOut, (uint32_t, bool), |
| 301 | frame_idx_to_step_to, first_insn); |
| 302 | |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 303 | SBError error; |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 304 | return LLDB_RECORD_RESULT( |
| 305 | QueueThreadPlanForStepOut(frame_idx_to_step_to, first_insn, error)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 306 | } |
| 307 | |
| 308 | SBThreadPlan |
| 309 | SBThreadPlan::QueueThreadPlanForStepOut(uint32_t frame_idx_to_step_to, |
| 310 | bool first_insn, SBError &error) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 311 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 312 | QueueThreadPlanForStepOut, |
| 313 | (uint32_t, bool, lldb::SBError &), frame_idx_to_step_to, |
| 314 | first_insn, error); |
| 315 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 316 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 317 | if (thread_plan_sp) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 318 | SymbolContext sc; |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 319 | sc = thread_plan_sp->GetThread().GetStackFrameAtIndex(0)->GetSymbolContext( |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 320 | lldb::eSymbolContextEverything); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 321 | |
| 322 | Status plan_status; |
| 323 | SBThreadPlan plan = |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 324 | SBThreadPlan(thread_plan_sp->GetThread().QueueThreadPlanForStepOut( |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 325 | false, &sc, first_insn, false, eVoteYes, eVoteNoOpinion, |
| 326 | frame_idx_to_step_to, plan_status)); |
| 327 | |
| 328 | if (plan_status.Fail()) |
| 329 | error.SetErrorString(plan_status.AsCString()); |
Jim Ingham | f7de4b5 | 2020-04-10 15:37:05 -0700 | [diff] [blame] | 330 | else |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 331 | plan.GetSP()->SetPrivate(true); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 332 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 333 | return LLDB_RECORD_RESULT(plan); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 334 | } |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 335 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 336 | } |
| 337 | |
| 338 | SBThreadPlan |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 339 | SBThreadPlan::QueueThreadPlanForRunToAddress(SBAddress sb_address) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 340 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 341 | QueueThreadPlanForRunToAddress, (lldb::SBAddress), |
| 342 | sb_address); |
| 343 | |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 344 | SBError error; |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 345 | return LLDB_RECORD_RESULT(QueueThreadPlanForRunToAddress(sb_address, error)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 346 | } |
| 347 | |
| 348 | SBThreadPlan SBThreadPlan::QueueThreadPlanForRunToAddress(SBAddress sb_address, |
| 349 | SBError &error) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 350 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 351 | QueueThreadPlanForRunToAddress, |
| 352 | (lldb::SBAddress, lldb::SBError &), sb_address, error); |
| 353 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 354 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 355 | if (thread_plan_sp) { |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 356 | Address *address = sb_address.get(); |
| 357 | if (!address) |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 358 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 359 | |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 360 | Status plan_status; |
| 361 | SBThreadPlan plan = |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 362 | SBThreadPlan(thread_plan_sp->GetThread().QueueThreadPlanForRunToAddress( |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 363 | false, *address, false, plan_status)); |
| 364 | |
| 365 | if (plan_status.Fail()) |
| 366 | error.SetErrorString(plan_status.AsCString()); |
Jim Ingham | f7de4b5 | 2020-04-10 15:37:05 -0700 | [diff] [blame] | 367 | else |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 368 | plan.GetSP()->SetPrivate(true); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 369 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 370 | return LLDB_RECORD_RESULT(plan); |
Kate Stone | b9c1b51 | 2016-09-06 20:57:50 +0000 | [diff] [blame] | 371 | } |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 372 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Jim Ingham | 2bdbfd5 | 2014-09-29 23:17:18 +0000 | [diff] [blame] | 373 | } |
Aleksandr Urakov | c1c0fac | 2018-10-25 08:27:42 +0000 | [diff] [blame] | 374 | |
| 375 | SBThreadPlan |
| 376 | SBThreadPlan::QueueThreadPlanForStepScripted(const char *script_class_name) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 377 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 378 | QueueThreadPlanForStepScripted, (const char *), |
| 379 | script_class_name); |
| 380 | |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 381 | SBError error; |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 382 | return LLDB_RECORD_RESULT( |
| 383 | QueueThreadPlanForStepScripted(script_class_name, error)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 384 | } |
| 385 | |
| 386 | SBThreadPlan |
| 387 | SBThreadPlan::QueueThreadPlanForStepScripted(const char *script_class_name, |
| 388 | SBError &error) { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 389 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 390 | QueueThreadPlanForStepScripted, |
| 391 | (const char *, lldb::SBError &), script_class_name, error); |
| 392 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 393 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 394 | if (thread_plan_sp) { |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 395 | Status plan_status; |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 396 | StructuredData::ObjectSP empty_args; |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 397 | SBThreadPlan plan = |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 398 | SBThreadPlan(thread_plan_sp->GetThread().QueueThreadPlanForStepScripted( |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 399 | false, script_class_name, empty_args, false, plan_status)); |
| 400 | |
| 401 | if (plan_status.Fail()) |
| 402 | error.SetErrorString(plan_status.AsCString()); |
Jim Ingham | f7de4b5 | 2020-04-10 15:37:05 -0700 | [diff] [blame] | 403 | else |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 404 | plan.GetSP()->SetPrivate(true); |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 405 | |
| 406 | return LLDB_RECORD_RESULT(plan); |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 407 | } |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 408 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 409 | } |
| 410 | |
| 411 | SBThreadPlan |
| 412 | SBThreadPlan::QueueThreadPlanForStepScripted(const char *script_class_name, |
| 413 | lldb::SBStructuredData &args_data, |
| 414 | SBError &error) { |
| 415 | LLDB_RECORD_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 416 | QueueThreadPlanForStepScripted, |
| 417 | (const char *, lldb::SBStructuredData &, lldb::SBError &), |
| 418 | script_class_name, args_data, error); |
| 419 | |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 420 | ThreadPlanSP thread_plan_sp(GetSP()); |
| 421 | if (thread_plan_sp) { |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 422 | Status plan_status; |
| 423 | StructuredData::ObjectSP args_obj = args_data.m_impl_up->GetObjectSP(); |
| 424 | SBThreadPlan plan = |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 425 | SBThreadPlan(thread_plan_sp->GetThread().QueueThreadPlanForStepScripted( |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 426 | false, script_class_name, args_obj, false, plan_status)); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 427 | |
| 428 | if (plan_status.Fail()) |
| 429 | error.SetErrorString(plan_status.AsCString()); |
Jim Ingham | f7de4b5 | 2020-04-10 15:37:05 -0700 | [diff] [blame] | 430 | else |
Jonas Devlieghere | 2ba7ce401e | 2020-07-20 16:50:59 -0700 | [diff] [blame^] | 431 | plan.GetSP()->SetPrivate(true); |
Jonas Devlieghere | e103ae9 | 2018-11-15 01:18:15 +0000 | [diff] [blame] | 432 | |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 433 | return LLDB_RECORD_RESULT(plan); |
Aleksandr Urakov | c1c0fac | 2018-10-25 08:27:42 +0000 | [diff] [blame] | 434 | } else { |
Jonas Devlieghere | baf5664 | 2019-03-06 00:06:00 +0000 | [diff] [blame] | 435 | return LLDB_RECORD_RESULT(SBThreadPlan()); |
Aleksandr Urakov | c1c0fac | 2018-10-25 08:27:42 +0000 | [diff] [blame] | 436 | } |
| 437 | } |
Michal Gorny | ae211ec | 2019-03-19 17:13:13 +0000 | [diff] [blame] | 438 | |
| 439 | namespace lldb_private { |
| 440 | namespace repro { |
| 441 | |
| 442 | template <> |
| 443 | void RegisterMethods<SBThreadPlan>(Registry &R) { |
| 444 | LLDB_REGISTER_CONSTRUCTOR(SBThreadPlan, ()); |
| 445 | LLDB_REGISTER_CONSTRUCTOR(SBThreadPlan, (const lldb::ThreadPlanSP &)); |
| 446 | LLDB_REGISTER_CONSTRUCTOR(SBThreadPlan, (const lldb::SBThreadPlan &)); |
| 447 | LLDB_REGISTER_CONSTRUCTOR(SBThreadPlan, (lldb::SBThread &, const char *)); |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 448 | LLDB_REGISTER_CONSTRUCTOR(SBThreadPlan, (lldb::SBThread &, const char *, |
| 449 | lldb::SBStructuredData &)); |
Michal Gorny | ae211ec | 2019-03-19 17:13:13 +0000 | [diff] [blame] | 450 | LLDB_REGISTER_METHOD(const lldb::SBThreadPlan &, |
| 451 | SBThreadPlan, operator=,(const lldb::SBThreadPlan &)); |
Michal Gorny | ae211ec | 2019-03-19 17:13:13 +0000 | [diff] [blame] | 452 | LLDB_REGISTER_METHOD_CONST(bool, SBThreadPlan, IsValid, ()); |
| 453 | LLDB_REGISTER_METHOD_CONST(bool, SBThreadPlan, operator bool, ()); |
| 454 | LLDB_REGISTER_METHOD(void, SBThreadPlan, Clear, ()); |
| 455 | LLDB_REGISTER_METHOD(lldb::StopReason, SBThreadPlan, GetStopReason, ()); |
| 456 | LLDB_REGISTER_METHOD(size_t, SBThreadPlan, GetStopReasonDataCount, ()); |
| 457 | LLDB_REGISTER_METHOD(uint64_t, SBThreadPlan, GetStopReasonDataAtIndex, |
| 458 | (uint32_t)); |
| 459 | LLDB_REGISTER_METHOD_CONST(lldb::SBThread, SBThreadPlan, GetThread, ()); |
| 460 | LLDB_REGISTER_METHOD_CONST(bool, SBThreadPlan, GetDescription, |
| 461 | (lldb::SBStream &)); |
| 462 | LLDB_REGISTER_METHOD(void, SBThreadPlan, SetPlanComplete, (bool)); |
| 463 | LLDB_REGISTER_METHOD(bool, SBThreadPlan, IsPlanComplete, ()); |
| 464 | LLDB_REGISTER_METHOD(bool, SBThreadPlan, IsPlanStale, ()); |
| 465 | LLDB_REGISTER_METHOD(bool, SBThreadPlan, IsValid, ()); |
| 466 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 467 | QueueThreadPlanForStepOverRange, |
| 468 | (lldb::SBAddress &, lldb::addr_t)); |
| 469 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 470 | QueueThreadPlanForStepOverRange, |
| 471 | (lldb::SBAddress &, lldb::addr_t, lldb::SBError &)); |
| 472 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 473 | QueueThreadPlanForStepInRange, |
| 474 | (lldb::SBAddress &, lldb::addr_t)); |
| 475 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 476 | QueueThreadPlanForStepInRange, |
| 477 | (lldb::SBAddress &, lldb::addr_t, lldb::SBError &)); |
| 478 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 479 | QueueThreadPlanForStepOut, (uint32_t, bool)); |
| 480 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 481 | QueueThreadPlanForStepOut, |
| 482 | (uint32_t, bool, lldb::SBError &)); |
| 483 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 484 | QueueThreadPlanForRunToAddress, (lldb::SBAddress)); |
| 485 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 486 | QueueThreadPlanForRunToAddress, |
| 487 | (lldb::SBAddress, lldb::SBError &)); |
| 488 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 489 | QueueThreadPlanForStepScripted, (const char *)); |
| 490 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 491 | QueueThreadPlanForStepScripted, |
| 492 | (const char *, lldb::SBError &)); |
Jim Ingham | 27a14f1 | 2019-10-03 22:50:18 +0000 | [diff] [blame] | 493 | LLDB_REGISTER_METHOD(lldb::SBThreadPlan, SBThreadPlan, |
| 494 | QueueThreadPlanForStepScripted, |
| 495 | (const char *, lldb::SBStructuredData &, |
| 496 | lldb::SBError &)); |
Michal Gorny | ae211ec | 2019-03-19 17:13:13 +0000 | [diff] [blame] | 497 | } |
| 498 | |
| 499 | } |
| 500 | } |