LLDB mainline
BreakpointOptions.cpp
Go to the documentation of this file.
1//===-- BreakpointOptions.cpp ---------------------------------------------===//
2//
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
6//
7//===----------------------------------------------------------------------===//
8
10
12#include "lldb/Core/Value.h"
15#include "lldb/Target/Process.h"
16#include "lldb/Target/Target.h"
18#include "lldb/Utility/Stream.h"
20
21#include "llvm/ADT/STLExtras.h"
22
23using namespace lldb;
24using namespace lldb_private;
25
26const char
29 "UserSource", "ScriptSource", "StopOnError"};
30
33 size_t num_strings = user_source.GetSize();
34 if (num_strings == 0 && script_source.empty()) {
35 // We shouldn't serialize commands if there aren't any, return an empty sp
36 // to indicate this.
38 }
39
40 StructuredData::DictionarySP options_dict_sp(
42 options_dict_sp->AddBooleanItem(GetKey(OptionNames::StopOnError),
44
46 for (size_t i = 0; i < num_strings; i++) {
49 user_source_sp->AddItem(item_sp);
50 options_dict_sp->AddItem(GetKey(OptionNames::UserSource), user_source_sp);
51 }
52
53 options_dict_sp->AddStringItem(
56 return options_dict_sp;
57}
58
59std::unique_ptr<BreakpointOptions::CommandData>
61 const StructuredData::Dictionary &options_dict, Status &error) {
62 std::unique_ptr<CommandData> data_up(new CommandData());
63
64 bool success = options_dict.GetValueForKeyAsBoolean(
65 GetKey(OptionNames::StopOnError), data_up->stop_on_error);
66
67 llvm::StringRef interpreter_str;
68 ScriptLanguage interp_language;
69 success = options_dict.GetValueForKeyAsString(
70 GetKey(OptionNames::Interpreter), interpreter_str);
71
72 if (!success) {
73 error = Status::FromErrorString("Missing command language value.");
74 return data_up;
75 }
76
77 interp_language = ScriptInterpreter::StringToLanguage(interpreter_str);
78 if (interp_language == eScriptLanguageUnknown) {
80 "Unknown breakpoint command language: {0}.", interpreter_str);
81 return data_up;
82 }
83 data_up->interpreter = interp_language;
84
88 if (success) {
89 size_t num_elems = user_source->GetSize();
90 for (size_t i = 0; i < num_elems; i++) {
91 if (std::optional<llvm::StringRef> maybe_elem_string =
92 user_source->GetItemAtIndexAsString(i))
93 data_up->user_source.AppendString(*maybe_elem_string);
94 }
95 }
96
97 return data_up;
98}
99
102 "ConditionText", "IgnoreCount", "EnabledState", "OneShotState",
103 "AutoContinue"};
104
105// BreakpointOptions constructor
107 : m_callback(nullptr), m_baton_is_command_baton(false),
108 m_callback_is_synchronous(false), m_enabled(true), m_one_shot(false),
110 m_set_flags(0) {
111 if (all_flags_set)
112 m_set_flags.Set(~((Flags::ValueType)0));
113}
114
115BreakpointOptions::BreakpointOptions(const char *condition, bool enabled,
116 int32_t ignore, bool one_shot,
117 bool auto_continue)
118 : m_callback(nullptr), m_baton_is_command_baton(false),
119 m_callback_is_synchronous(false), m_enabled(enabled),
120 m_one_shot(one_shot), m_ignore_count(ignore), m_condition(condition),
121 m_inject_condition(false), m_auto_continue(auto_continue) {
123 if (condition && *condition != '\0') {
124 SetCondition(StopCondition(condition));
125 }
126}
127
128// BreakpointOptions copy constructor
140
141// BreakpointOptions assignment operator
159
161{
162 if (incoming.m_set_flags.Test(eEnabled))
163 {
164 m_enabled = incoming.m_enabled;
166 }
167 if (incoming.m_set_flags.Test(eOneShot))
168 {
169 m_one_shot = incoming.m_one_shot;
171 }
172 if (incoming.m_set_flags.Test(eCallback))
173 {
174 m_callback = incoming.m_callback;
179 }
180 if (incoming.m_set_flags.Test(eIgnoreCount))
181 {
184 }
185 if (incoming.m_set_flags.Test(eCondition))
186 {
187 // If we're copying over an empty condition, mark it as unset.
188 if (!incoming.m_condition) {
190 m_set_flags.Clear(eCondition);
191 } else {
192 m_condition = incoming.m_condition;
194 }
195 }
196 if (incoming.m_set_flags.Test(eAutoContinue))
197 {
200 }
201 if (incoming.m_set_flags.Test(eThreadSpec) && incoming.m_thread_spec_up) {
202 if (!m_thread_spec_up)
204 std::make_unique<ThreadSpec>(*incoming.m_thread_spec_up);
205 else
208 }
209}
210
211// Destructor
213
214std::unique_ptr<BreakpointOptions> BreakpointOptions::CreateFromStructuredData(
215 Target &target, const StructuredData::Dictionary &options_dict,
216 Status &error) {
217 bool enabled = true;
218 bool one_shot = false;
219 bool auto_continue = false;
220 uint32_t ignore_count = 0;
221 llvm::StringRef condition_ref("");
222 Flags set_options;
223
224 const char *key = GetKey(OptionNames::EnabledState);
225 bool success;
226 if (key && options_dict.HasKey(key)) {
227 success = options_dict.GetValueForKeyAsBoolean(key, enabled);
228 if (!success) {
229 error =
230 Status::FromErrorStringWithFormat("%s key is not a boolean.", key);
231 return nullptr;
232 }
233 set_options.Set(eEnabled);
234 }
235
237 if (key && options_dict.HasKey(key)) {
238 success = options_dict.GetValueForKeyAsBoolean(key, one_shot);
239 if (!success) {
240 error =
241 Status::FromErrorStringWithFormat("%s key is not a boolean.", key);
242 return nullptr;
243 }
244 set_options.Set(eOneShot);
245 }
246
248 if (key && options_dict.HasKey(key)) {
249 success = options_dict.GetValueForKeyAsBoolean(key, auto_continue);
250 if (!success) {
251 error =
252 Status::FromErrorStringWithFormat("%s key is not a boolean.", key);
253 return nullptr;
254 }
255 set_options.Set(eAutoContinue);
256 }
257
259 if (key && options_dict.HasKey(key)) {
260 success = options_dict.GetValueForKeyAsInteger(key, ignore_count);
261 if (!success) {
262 error =
263 Status::FromErrorStringWithFormat("%s key is not an integer.", key);
264 return nullptr;
265 }
266 set_options.Set(eIgnoreCount);
267 }
268
270 if (key && options_dict.HasKey(key)) {
271 success = options_dict.GetValueForKeyAsString(key, condition_ref);
272 if (!success) {
273 error =
274 Status::FromErrorStringWithFormat("%s key is not an string.", key);
275 return nullptr;
276 }
277 set_options.Set(eCondition);
278 }
279
280 std::unique_ptr<CommandData> cmd_data_up;
282 success = options_dict.GetValueForKeyAsDictionary(
284 if (success && cmds_dict) {
285 Status cmds_error;
286 cmd_data_up = CommandData::CreateFromStructuredData(*cmds_dict, cmds_error);
287 if (cmds_error.Fail()) {
289 "Failed to deserialize breakpoint command options: %s.",
290 cmds_error.AsCString());
291 return nullptr;
292 }
293 }
294
295 auto bp_options = std::make_unique<BreakpointOptions>(
296 condition_ref.str().c_str(), enabled, ignore_count, one_shot,
297 auto_continue);
298 if (cmd_data_up) {
299 if (cmd_data_up->interpreter == eScriptLanguageNone)
300 bp_options->SetCommandDataCallback(cmd_data_up);
301 else {
303 if (!interp) {
305 "Can't set script commands - no script interpreter");
306 return nullptr;
307 }
308 if (interp->GetLanguage() != cmd_data_up->interpreter) {
310 "Current script language doesn't match breakpoint's language: %s",
311 ScriptInterpreter::LanguageToString(cmd_data_up->interpreter)
312 .c_str());
313 return nullptr;
314 }
315 Status script_error;
316 script_error =
317 interp->SetBreakpointCommandCallback(*bp_options, cmd_data_up);
318 if (script_error.Fail()) {
320 "Error generating script callback: %s.", error.AsCString());
321 return nullptr;
322 }
323 }
324 }
325
326 StructuredData::Dictionary *thread_spec_dict;
327 success = options_dict.GetValueForKeyAsDictionary(
328 ThreadSpec::GetSerializationKey(), thread_spec_dict);
329 if (success) {
330 Status thread_spec_error;
331 std::unique_ptr<ThreadSpec> thread_spec_up =
332 ThreadSpec::CreateFromStructuredData(*thread_spec_dict,
333 thread_spec_error);
334 if (thread_spec_error.Fail()) {
336 "Failed to deserialize breakpoint thread spec options: %s.",
337 thread_spec_error.AsCString());
338 return nullptr;
339 }
340 bp_options->SetThreadSpec(thread_spec_up);
341 }
342 return bp_options;
343}
344
346 StructuredData::DictionarySP options_dict_sp(
348 if (m_set_flags.Test(eEnabled))
349 options_dict_sp->AddBooleanItem(GetKey(OptionNames::EnabledState),
350 m_enabled);
351 if (m_set_flags.Test(eOneShot))
352 options_dict_sp->AddBooleanItem(GetKey(OptionNames::OneShotState),
353 m_one_shot);
354 if (m_set_flags.Test(eAutoContinue))
355 options_dict_sp->AddBooleanItem(GetKey(OptionNames::AutoContinue),
357 if (m_set_flags.Test(eIgnoreCount))
358 options_dict_sp->AddIntegerItem(GetKey(OptionNames::IgnoreCount),
360 if (m_set_flags.Test(eCondition))
361 options_dict_sp->AddStringItem(GetKey(OptionNames::ConditionText),
362 m_condition.GetText());
363
365 auto cmd_baton =
366 std::static_pointer_cast<CommandBaton>(m_callback_baton_sp);
367 StructuredData::ObjectSP commands_sp =
368 cmd_baton->getItem()->SerializeToStructuredData();
369 if (commands_sp) {
370 options_dict_sp->AddItem(
372 }
373 }
375 StructuredData::ObjectSP thread_spec_sp =
376 m_thread_spec_up->SerializeToStructuredData();
377 options_dict_sp->AddItem(ThreadSpec::GetSerializationKey(), thread_spec_sp);
378 }
379
380 return options_dict_sp;
381}
382
383// Callbacks
385 const lldb::BatonSP &callback_baton_sp,
386 bool callback_is_synchronous) {
387 // FIXME: This seems unsafe. If BatonSP actually *is* a CommandBaton, but
388 // in a shared_ptr<Baton> instead of a shared_ptr<CommandBaton>, then we will
389 // set m_baton_is_command_baton to false, which is incorrect. One possible
390 // solution is to make the base Baton class provide a method such as:
391 // virtual StringRef getBatonId() const { return ""; }
392 // and have CommandBaton override this to return something unique, and then
393 // check for it here. Another option might be to make Baton using the llvm
394 // casting infrastructure, so that we could write something like:
395 // if (llvm::isa<CommandBaton>(callback_baton_sp))
396 // at relevant callsites instead of storing a boolean.
397 m_callback_is_synchronous = callback_is_synchronous;
398 m_callback = callback;
399 m_callback_baton_sp = callback_baton_sp;
402}
403
405 BreakpointHitCallback callback,
406 const BreakpointOptions::CommandBatonSP &callback_baton_sp,
407 bool callback_is_synchronous) {
408 m_callback_is_synchronous = callback_is_synchronous;
409 m_callback = callback;
410 m_callback_baton_sp = callback_baton_sp;
413}
414
422
424
426 return m_callback_baton_sp.get();
427}
428
430 lldb::user_id_t break_id,
431 lldb::user_id_t break_loc_id) {
432 if (m_callback) {
433 if (context->is_synchronous == IsCallbackSynchronous()) {
435 : nullptr,
436 context, break_id, break_loc_id);
437 }
438 if (IsCallbackSynchronous()) {
439 return false;
440 }
441 }
442 return true;
443}
444
446 return static_cast<bool>(m_callback);
447}
448
450 if (!HasCallback())
451 return false;
453 return false;
454
455 auto cmd_baton = std::static_pointer_cast<CommandBaton>(m_callback_baton_sp);
456 CommandData *data = cmd_baton->getItem();
457 if (!data)
458 return false;
459 command_list = data->user_source;
460 return true;
461}
462
464 if (!condition)
465 m_set_flags.Clear(eCondition);
466 else
468
469 m_condition = std::move(condition);
470}
471
475
477
481
483 if (m_thread_spec_up == nullptr) {
485 m_thread_spec_up = std::make_unique<ThreadSpec>();
486 }
487
488 return m_thread_spec_up.get();
489}
490
492 GetThreadSpec()->SetTID(thread_id);
494}
495
497 std::unique_ptr<ThreadSpec> &thread_spec_up) {
498 m_thread_spec_up = std::move(thread_spec_up);
500}
501
503 lldb::DescriptionLevel level) const {
504 // Figure out if there are any options not at their default value, and only
505 // print anything if there are:
506
508 (GetThreadSpecNoCreate() != nullptr &&
509 GetThreadSpecNoCreate()->HasSpecification())) {
510 if (level == lldb::eDescriptionLevelVerbose) {
511 s->EOL();
512 s->IndentMore();
513 s->Indent();
514 s->PutCString("Breakpoint Options:\n");
515 s->IndentMore();
516 s->Indent();
517 } else
518 s->PutCString(" Options: ");
519
520 if (m_ignore_count > 0)
521 s->Printf("ignore: %d ", m_ignore_count);
522 s->Printf("%sabled ", m_enabled ? "en" : "dis");
523
524 if (m_one_shot)
525 s->Printf("one-shot ");
526
527 if (m_auto_continue)
528 s->Printf("auto-continue ");
529
531 m_thread_spec_up->GetDescription(s, level);
532
533 if (level == lldb::eDescriptionLevelFull) {
534 s->IndentLess();
535 s->IndentMore();
536 }
537 }
538
539 if (m_callback_baton_sp.get()) {
540 if (level != eDescriptionLevelBrief) {
541 s->EOL();
542 m_callback_baton_sp->GetDescription(s->AsRawOstream(), level,
543 s->GetIndentLevel());
544 }
545 }
546 if (m_condition) {
547 if (level != eDescriptionLevelBrief) {
548 s->EOL();
549 s->Printf("Condition: %s\n", m_condition.GetText().data());
550 }
551 }
552}
553
555 llvm::raw_ostream &s, lldb::DescriptionLevel level,
556 unsigned indentation) const {
557 const CommandData *data = getItem();
558
559 if (level == eDescriptionLevelBrief) {
560 s << ", commands = "
561 << ((data && data->user_source.GetSize() > 0) ? "yes" : "no");
562 return;
563 }
564
565 indentation += 2;
566 s.indent(indentation);
567 s << "Breakpoint commands";
568 if (data->interpreter != eScriptLanguageNone)
569 s << llvm::formatv(" ({0}):\n",
571 else
572 s << ":\n";
573
574 indentation += 2;
575 if (data && data->user_source.GetSize() > 0) {
576 for (llvm::StringRef str : data->user_source) {
577 s.indent(indentation);
578 s << str << "\n";
579 }
580 } else
581 s << "No commands.\n";
582}
583
585 std::unique_ptr<CommandData> &cmd_data) {
586 cmd_data->interpreter = eScriptLanguageNone;
587 auto baton_sp = std::make_shared<CommandBaton>(std::move(cmd_data));
590}
591
593 void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id,
594 lldb::user_id_t break_loc_id) {
595 bool ret_value = true;
596 if (baton == nullptr)
597 return true;
598
599 CommandData *data = (CommandData *)baton;
600 StringList &commands = data->user_source;
601
602 if (commands.GetSize() > 0) {
603 ExecutionContext exe_ctx(context->exe_ctx_ref);
604 Target *target = exe_ctx.GetTargetPtr();
605 if (target) {
606 Debugger &debugger = target->GetDebugger();
607 CommandReturnObject result(debugger.GetUseColor());
608
609 // Rig up the results secondary output stream to the debugger's, so the
610 // output will come out synchronously if the debugger is set up that way.
613
615 options.SetStopOnContinue(true);
616 options.SetStopOnError(data->stop_on_error);
617 options.SetEchoCommands(true);
618 options.SetPrintResults(true);
619 options.SetPrintErrors(true);
620 options.SetAddToHistory(false);
621
622 debugger.GetCommandInterpreter().HandleCommands(commands, exe_ctx,
623 options, result);
624 result.GetImmediateOutputStream()->Flush();
625 result.GetImmediateErrorStream()->Flush();
626 }
627 }
628 return ret_value;
629}
630
632{
633 m_set_flags.Clear();
634 m_thread_spec_up.release();
635 m_one_shot = false;
636 m_ignore_count = 0;
637 m_auto_continue = false;
638 m_callback = nullptr;
639 m_callback_baton_sp.reset();
642 m_enabled = false;
644}
static llvm::raw_ostream & error(Stream &strm)
A class designed to wrap callback batons so they can cleanup any acquired resources.
Definition Baton.h:35
void GetDescription(llvm::raw_ostream &s, lldb::DescriptionLevel level, unsigned indentation) const override
bool IsCallbackSynchronous() const
Used in InvokeCallback to tell whether it is the right time to run this kind of callback.
bool InvokeCallback(StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
Use this function to invoke the callback for a specific stop.
void ClearCallback()
Remove the callback from this option set.
Flags m_set_flags
Which options are set at this level.
void SetCondition(StopCondition condition)
Set the breakpoint stop condition.
const StopCondition & GetCondition() const
Return the breakpoint condition.
bool GetCommandLineCallbacks(StringList &command_list)
Returns the command line commands for the callback on this breakpoint.
std::shared_ptr< CommandBaton > CommandBatonSP
static const char * GetKey(OptionNames enum_value)
Baton * GetBaton()
Fetch the baton from the callback.
static bool BreakpointOptionsCallbackFunction(void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)
virtual StructuredData::ObjectSP SerializeToStructuredData()
void GetDescription(Stream *s, lldb::DescriptionLevel level) const
bool m_one_shot
If set, the breakpoint delete itself after being hit once.
static const char * g_option_names[(size_t) OptionNames::LastOptionName]
lldb::BatonSP m_callback_baton_sp
This is the client data for the callback.
ThreadSpec * GetThreadSpec()
Returns a pointer to the ThreadSpec for this option, creating it.
StopCondition m_condition
The condition to test.
const ThreadSpec * GetThreadSpecNoCreate() const
Return the current thread spec for this option.
std::unique_ptr< ThreadSpec > m_thread_spec_up
Thread for which this breakpoint will stop.
BreakpointHitCallback m_callback
For BreakpointOptions only.
bool m_inject_condition
If set, inject breakpoint condition into process.
bool m_auto_continue
If set, auto-continue from breakpoint.
static std::unique_ptr< BreakpointOptions > CreateFromStructuredData(Target &target, const StructuredData::Dictionary &data_dict, Status &error)
uint32_t m_ignore_count
Number of times to ignore this breakpoint.
void SetThreadID(lldb::tid_t thread_id)
void CopyOverSetOptions(const BreakpointOptions &rhs)
Copy over only the options set in the incoming BreakpointOptions.
BreakpointOptions(const char *condition, bool enabled=true, int32_t ignore=0, bool one_shot=false, bool auto_continue=false)
This constructor allows you to specify all the breakpoint options except the callback.
bool HasCallback() const
Check if the breakpoint option has a callback set.
const BreakpointOptions & operator=(const BreakpointOptions &rhs)
void SetCommandDataCallback(std::unique_ptr< CommandData > &cmd_data)
Set a callback based on BreakpointOptions::CommandData.
void SetThreadSpec(std::unique_ptr< ThreadSpec > &thread_spec_up)
void SetCallback(BreakpointHitCallback callback, const lldb::BatonSP &baton_sp, bool synchronous=false)
Adds a callback to the breakpoint option set.
void HandleCommands(const StringList &commands, const ExecutionContext &context, const CommandInterpreterRunOptions &options, CommandReturnObject &result)
Execute a list of commands in sequence.
void SetImmediateErrorStream(const lldb::StreamSP &stream_sp)
void SetImmediateOutputStream(const lldb::StreamSP &stream_sp)
lldb::StreamSP GetImmediateErrorStream() const
lldb::StreamSP GetImmediateOutputStream() const
A class to manage flag bits.
Definition Debugger.h:80
CommandInterpreter & GetCommandInterpreter()
Definition Debugger.h:163
lldb::StreamUP GetAsyncErrorStream()
bool GetUseColor() const
Definition Debugger.cpp:452
lldb::StreamUP GetAsyncOutputStream()
ScriptInterpreter * GetScriptInterpreter(bool can_create=true, std::optional< lldb::ScriptLanguage > language={})
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
Target * GetTargetPtr() const
Returns a pointer to the target object.
A class to manage flags.
Definition Flags.h:22
uint32_t ValueType
The value type for flags is a 32 bit unsigned integer type.
Definition Flags.h:25
bool Test(ValueType bit) const
Test a single flag bit.
Definition Flags.h:96
ValueType Set(ValueType mask)
Set one or more flags by logical OR'ing mask with the current flags.
Definition Flags.h:73
static lldb::ScriptLanguage StringToLanguage(const llvm::StringRef &string)
Status SetBreakpointCommandCallback(std::vector< std::reference_wrapper< BreakpointOptions > > &bp_options_vec, const char *callback_text)
Set the specified text as the callback for the breakpoint.
static std::string LanguageToString(lldb::ScriptLanguage language)
lldb::ScriptLanguage GetLanguage()
An error handling class.
Definition Status.h:118
static Status FromErrorStringWithFormat(const char *format,...) __attribute__((format(printf
Definition Status.cpp:106
static Status FromErrorString(const char *str)
Definition Status.h:141
bool Fail() const
Test for error condition.
Definition Status.cpp:294
const char * AsCString(const char *default_error_str="unknown error") const
Get the error string associated with the current error.
Definition Status.cpp:195
static Status static Status FromErrorStringWithFormatv(const char *format, Args &&...args)
Definition Status.h:151
General Outline: When we hit a breakpoint we need to package up whatever information is needed to eva...
A stream class that can stream formatted output to a file.
Definition Stream.h:28
llvm::raw_ostream & AsRawOstream()
Returns a raw_ostream that forwards the data to this Stream object.
Definition Stream.h:400
size_t Indent(llvm::StringRef s="")
Indent the current line in the stream.
Definition Stream.cpp:157
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Definition Stream.cpp:134
size_t PutCString(llvm::StringRef cstr)
Output a C string to the stream.
Definition Stream.cpp:65
size_t EOL()
Output and End of Line character to the stream.
Definition Stream.cpp:155
void IndentLess(unsigned amount=2)
Decrement the current indentation level.
Definition Stream.cpp:198
void IndentMore(unsigned amount=2)
Increment the current indentation level.
Definition Stream.cpp:195
unsigned GetIndentLevel() const
Get the current indentation level.
Definition Stream.cpp:187
bool GetValueForKeyAsInteger(llvm::StringRef key, IntType &result) const
bool GetValueForKeyAsString(llvm::StringRef key, llvm::StringRef &result) const
bool GetValueForKeyAsBoolean(llvm::StringRef key, bool &result) const
bool HasKey(llvm::StringRef key) const
bool GetValueForKeyAsArray(llvm::StringRef key, Array *&result) const
bool GetValueForKeyAsDictionary(llvm::StringRef key, Dictionary *&result) const
std::shared_ptr< Dictionary > DictionarySP
std::shared_ptr< Object > ObjectSP
std::shared_ptr< String > StringSP
std::shared_ptr< Array > ArraySP
Debugger & GetDebugger() const
Definition Target.h:1097
void SetTID(lldb::tid_t tid)
Definition ThreadSpec.h:47
static const char * GetSerializationKey()
Definition ThreadSpec.h:43
static std::unique_ptr< ThreadSpec > CreateFromStructuredData(const StructuredData::Dictionary &data_dict, Status &error)
A class that represents a running process on the host machine.
std::function< bool(void *baton, StoppointCallbackContext *context, lldb::user_id_t break_id, lldb::user_id_t break_loc_id)> BreakpointHitCallback
ScriptLanguage
Script interpreter types.
@ eScriptLanguageUnknown
@ eScriptLanguageNone
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelBrief
@ eDescriptionLevelFull
@ eDescriptionLevelVerbose
std::shared_ptr< lldb_private::Baton > BatonSP
uint64_t user_id_t
Definition lldb-types.h:82
uint64_t tid_t
Definition lldb-types.h:84
static std::unique_ptr< CommandData > CreateFromStructuredData(const StructuredData::Dictionary &options_dict, Status &error)
static const char * GetKey(OptionNames enum_value)
static const char * g_option_names[static_cast< uint32_t >(OptionNames::LastOptionName)]