@@ -121,23 +121,23 @@ ScriptedThread::CreateRegisterContextForFrame(StackFrame *frame) {
121
121
122
122
llvm::Optional<std::string> reg_data = GetInterface ()->GetRegisterContext ();
123
123
if (!reg_data)
124
- return GetInterface ()-> ErrorWithMessage <lldb::RegisterContextSP>(
124
+ return ScriptedInterface:: ErrorWithMessage<lldb::RegisterContextSP>(
125
125
LLVM_PRETTY_FUNCTION, " Failed to get scripted thread registers data." ,
126
126
error, LLDBLog::Thread);
127
127
128
128
DataBufferSP data_sp (
129
129
std::make_shared<DataBufferHeap>(reg_data->c_str (), reg_data->size ()));
130
130
131
131
if (!data_sp->GetByteSize ())
132
- return GetInterface ()-> ErrorWithMessage <lldb::RegisterContextSP>(
132
+ return ScriptedInterface:: ErrorWithMessage<lldb::RegisterContextSP>(
133
133
LLVM_PRETTY_FUNCTION, " Failed to copy raw registers data." , error,
134
134
LLDBLog::Thread);
135
135
136
136
std::shared_ptr<RegisterContextMemory> reg_ctx_memory =
137
137
std::make_shared<RegisterContextMemory>(
138
138
*this , 0 , *GetDynamicRegisterInfo (), LLDB_INVALID_ADDRESS);
139
139
if (!reg_ctx_memory)
140
- return GetInterface ()-> ErrorWithMessage <lldb::RegisterContextSP>(
140
+ return ScriptedInterface:: ErrorWithMessage<lldb::RegisterContextSP>(
141
141
LLVM_PRETTY_FUNCTION, " Failed to create a register context." , error,
142
142
LLDBLog::Thread);
143
143
@@ -152,13 +152,13 @@ bool ScriptedThread::LoadArtificialStackFrames() {
152
152
153
153
Status error;
154
154
if (!arr_sp)
155
- return GetInterface ()-> ErrorWithMessage <bool >(
155
+ return ScriptedInterface:: ErrorWithMessage<bool >(
156
156
LLVM_PRETTY_FUNCTION, " Failed to get scripted thread stackframes." ,
157
157
error, LLDBLog::Thread);
158
158
159
159
size_t arr_size = arr_sp->GetSize ();
160
160
if (arr_size > std::numeric_limits<uint32_t >::max ())
161
- return GetInterface ()-> ErrorWithMessage <bool >(
161
+ return ScriptedInterface:: ErrorWithMessage<bool >(
162
162
LLVM_PRETTY_FUNCTION,
163
163
llvm::Twine (
164
164
" StackFrame array size (" + llvm::Twine (arr_size) +
@@ -174,7 +174,7 @@ bool ScriptedThread::LoadArtificialStackFrames() {
174
174
StructuredData::Dictionary *dict;
175
175
176
176
if (!arr_sp->GetItemAtIndexAsDictionary (idx, dict) || !dict)
177
- return GetInterface ()-> ErrorWithMessage <bool >(
177
+ return ScriptedInterface:: ErrorWithMessage<bool >(
178
178
LLVM_PRETTY_FUNCTION,
179
179
llvm::Twine (
180
180
" Couldn't get artificial stackframe dictionary at index (" +
@@ -203,7 +203,7 @@ bool ScriptedThread::LoadArtificialStackFrames() {
203
203
StackFrame::Kind::Artificial, behaves_like_zeroth_frame, &sc);
204
204
205
205
if (!frames->SetFrameAtIndex (static_cast <uint32_t >(idx), synth_frame_sp))
206
- return GetInterface ()-> ErrorWithMessage <bool >(
206
+ return ScriptedInterface:: ErrorWithMessage<bool >(
207
207
LLVM_PRETTY_FUNCTION,
208
208
llvm::Twine (" Couldn't add frame (" + llvm::Twine (idx) +
209
209
llvm::Twine (" ) to ScriptedThread StackFrameList." ))
@@ -219,22 +219,22 @@ bool ScriptedThread::CalculateStopInfo() {
219
219
220
220
Status error;
221
221
if (!dict_sp)
222
- return GetInterface ()-> ErrorWithMessage <bool >(
222
+ return ScriptedInterface:: ErrorWithMessage<bool >(
223
223
LLVM_PRETTY_FUNCTION, " Failed to get scripted thread stop info." , error,
224
224
LLDBLog::Thread);
225
225
226
226
lldb::StopInfoSP stop_info_sp;
227
227
lldb::StopReason stop_reason_type;
228
228
229
229
if (!dict_sp->GetValueForKeyAsInteger (" type" , stop_reason_type))
230
- return GetInterface ()-> ErrorWithMessage <bool >(
230
+ return ScriptedInterface:: ErrorWithMessage<bool >(
231
231
LLVM_PRETTY_FUNCTION,
232
232
" Couldn't find value for key 'type' in stop reason dictionary." , error,
233
233
LLDBLog::Thread);
234
234
235
235
StructuredData::Dictionary *data_dict;
236
236
if (!dict_sp->GetValueForKeyAsDictionary (" data" , data_dict))
237
- return GetInterface ()-> ErrorWithMessage <bool >(
237
+ return ScriptedInterface:: ErrorWithMessage<bool >(
238
238
LLVM_PRETTY_FUNCTION,
239
239
" Couldn't find value for key 'data' in stop reason dictionary." , error,
240
240
LLDBLog::Thread);
@@ -266,7 +266,7 @@ bool ScriptedThread::CalculateStopInfo() {
266
266
StopInfo::CreateStopReasonWithException (*this , description.data ());
267
267
} break ;
268
268
default :
269
- return GetInterface ()-> ErrorWithMessage <bool >(
269
+ return ScriptedInterface:: ErrorWithMessage<bool >(
270
270
LLVM_PRETTY_FUNCTION,
271
271
llvm::Twine (" Unsupported stop reason type (" +
272
272
llvm::Twine (stop_reason_type) + llvm::Twine (" )." ))
0 commit comments