45#define LLDB_OPTIONS_thread_backtrace
46#include "CommandOptions.inc"
65 switch (short_option) {
67 if (option_arg.getAsInteger(0,
m_count)) {
70 "invalid integer value for option '%c': %s", short_option,
78 if (option_arg.getAsInteger(0,
m_start))
80 "invalid integer value for option '%c': %s", short_option,
89 "invalid boolean value for option '%c': %s", short_option,
96 llvm_unreachable(
"Unimplemented option");
109 return llvm::ArrayRef(g_thread_backtrace_options);
121 interpreter,
"thread backtrace",
122 "Show backtraces of thread call stacks. Defaults to the current "
123 "thread, thread indexes can be specified as arguments.\n"
124 "Use the thread-index \"all\" to see all threads.\n"
125 "Use the thread-index \"unique\" to see threads grouped by unique "
127 "Use 'settings set frame-format' to customize the printing of "
128 "frames in the backtrace and 'settings set thread-format' to "
129 "customize the thread header.\n"
130 "Customizable frame recognizers may filter out less interesting "
131 "frames, which results in gaps in the numbering. "
132 "Use '-u' to see all frames.",
134 eCommandRequiresProcess | eCommandRequiresThread |
135 eCommandTryTargetAPILock | eCommandProcessMustBeLaunched |
136 eCommandProcessMustBePaused) {}
143 uint32_t index)
override {
144 llvm::StringRef count_opt(
"--count");
145 llvm::StringRef start_opt(
"--start");
152 Args copy_args(current_args);
155 size_t count_idx = 0;
156 size_t start_idx = 0;
157 size_t count_val = 0;
158 size_t start_val = 0;
160 for (
size_t idx = 0; idx < num_entries; idx++) {
161 llvm::StringRef arg_string = copy_args[idx].ref();
162 if (arg_string ==
"-c" || count_opt.starts_with(arg_string)) {
164 if (idx == num_entries)
167 if (copy_args[idx].ref().getAsInteger(0, count_val))
169 }
else if (arg_string ==
"-s" || start_opt.starts_with(arg_string)) {
171 if (idx == num_entries)
174 if (copy_args[idx].ref().getAsInteger(0, start_val))
181 std::string new_start_val = llvm::formatv(
"{0}", start_val + count_val);
182 if (start_idx == 0) {
188 std::string repeat_command;
191 return repeat_command;
199 const std::vector<ConstString> &types =
201 for (
auto type : types) {
203 thread->shared_from_this(), type);
204 if (ext_thread_sp && ext_thread_sp->IsValid()) {
205 const uint32_t num_frames_with_source = 0;
206 const bool stop_format =
false;
208 if (ext_thread_sp->GetStatus(strm,
m_options.m_start,
210 num_frames_with_source, stop_format,
221 m_exe_ctx.GetProcessPtr()->GetThreadList().FindThreadByID(tid);
224 "thread disappeared while computing backtraces: 0x%" PRIx64
"\n",
229 Thread *thread = thread_sp.get();
237 const uint32_t num_frames_with_source = 0;
238 const bool stop_format =
true;
240 num_frames_with_source, stop_format,
241 !
m_options.m_filtered_backtrace, only_stacks)) {
243 "error displaying backtrace for thread: \"0x%4.4x\"\n",
244 thread->GetIndexID());
249 "Interrupt skipped extended backtrace")) {
260#define LLDB_OPTIONS_thread_step_scope
261#include "CommandOptions.inc"
274 return llvm::ArrayRef(g_thread_step_scope_options);
280 const int short_option =
281 g_thread_step_scope_options[option_idx].short_option;
283 switch (short_option) {
286 bool avoid_no_debug =
290 "invalid boolean value for option '%c': %s", short_option,
299 bool avoid_no_debug =
303 "invalid boolean value for option '%c': %s", short_option,
313 "invalid integer value for option '%c': %s", short_option,
324 if (option_arg ==
"block") {
330 "invalid end line number '%s'", option_arg.str().c_str());
344 llvm_unreachable(
"Unimplemented option");
359 if (process_sp && process_sp->GetSteppingRunsAllThreads())
383 const char *name,
const char *help,
387 eCommandRequiresProcess | eCommandRequiresThread |
388 eCommandTryTargetAPILock |
389 eCommandProcessMustBeLaunched |
390 eCommandProcessMustBePaused),
425 if (thread ==
nullptr) {
426 result.
AppendError(
"no selected thread in process");
431 uint32_t step_thread_idx;
433 if (!llvm::to_integer(thread_idx_cstr, step_thread_idx)) {
440 if (thread ==
nullptr) {
442 "Thread index %u is out of range (valid values are 0 - %u).\n",
443 step_thread_idx, num_threads);
452 }
else if (!
GetDebugger().GetScriptInterpreter()->CheckObjectExists(
455 "class for scripted step: \"%s\" does not exist.",
464 "end line option is only valid for step into");
468 const bool abort_other_plans =
false;
473 bool bool_stop_other_threads;
475 bool_stop_other_threads =
false;
479 bool_stop_other_threads =
true;
485 StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
486 assert(frame !=
nullptr);
496 llvm::toString(std::move(err)));
499 }
else if (
m_options.m_end_line_is_block_end) {
512 "Could not find the current block address.");
525 new_plan_sp = thread->QueueThreadPlanForStepInRange(
526 abort_other_plans, range,
528 m_options.m_step_in_target.c_str(), stop_other_threads,
529 new_plan_status,
m_options.m_step_in_avoid_no_debug,
532 if (new_plan_sp && !
m_options.m_avoid_regexp.empty()) {
538 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
539 false, abort_other_plans, bool_stop_other_threads, new_plan_status);
541 StackFrame *frame = thread->GetStackFrameAtIndex(0).get();
544 new_plan_sp = thread->QueueThreadPlanForStepOverRange(
548 stop_other_threads, new_plan_status,
551 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
552 true, abort_other_plans, bool_stop_other_threads, new_plan_status);
554 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
555 false, abort_other_plans, bool_stop_other_threads, new_plan_status);
557 new_plan_sp = thread->QueueThreadPlanForStepSingleInstruction(
558 true, abort_other_plans, bool_stop_other_threads, new_plan_status);
560 new_plan_sp = thread->QueueThreadPlanForStepOut(
561 abort_other_plans,
nullptr,
false, bool_stop_other_threads,
eVoteYes,
564 new_plan_status,
m_options.m_step_out_avoid_no_debug);
566 new_plan_sp = thread->QueueThreadPlanForStepScripted(
580 new_plan_sp->SetIsControllingPlan(
true);
581 new_plan_sp->SetOkayToDiscard(
false);
584 if (!new_plan_sp->SetIterationCount(
m_options.m_step_count)) {
586 "step operation does not support iteration count.");
596 if (synchronous_execution)
601 if (!
error.Success()) {
610 process->
SyncIOHandler(iohandler_id, std::chrono::seconds(2));
612 if (synchronous_execution) {
625 result.
SetError(std::move(new_plan_status));
641 interpreter,
"thread continue",
642 "Continue execution of the current target process. One "
643 "or more threads may be specified, by default all "
646 eCommandRequiresThread | eCommandTryTargetAPILock |
647 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {
657 if (process ==
nullptr) {
658 result.
AppendError(
"no process exists. Cannot continue");
670 std::lock_guard<std::recursive_mutex> guard(
673 std::vector<Thread *> resume_threads;
674 for (
auto &entry : command.
entries()) {
676 if (entry.ref().getAsInteger(0, thread_idx)) {
678 "invalid thread index argument: \"%s\".\n", entry.c_str());
685 resume_threads.push_back(thread);
693 if (resume_threads.empty()) {
694 result.
AppendError(
"no valid thread indexes were specified");
697 if (resume_threads.size() == 1)
702 for (uint32_t idx = 0; idx < num_threads; ++idx) {
705 std::vector<Thread *>::iterator this_thread_pos =
706 find(resume_threads.begin(), resume_threads.end(), thread);
708 if (this_thread_pos != resume_threads.end()) {
709 resume_threads.erase(this_thread_pos);
710 if (!resume_threads.empty())
715 const bool override_suspend =
true;
728 std::lock_guard<std::recursive_mutex> guard(
732 if (current_thread ==
nullptr) {
733 result.
AppendError(
"the process doesn't have a current thread");
737 for (uint32_t idx = 0; idx < num_threads; ++idx) {
739 if (thread == current_thread) {
741 " in process %" PRIu64
"\n",
742 thread->GetID(), process->
GetID());
743 const bool override_suspend =
true;
753 if (synchronous_execution)
759 if (
error.Success()) {
762 if (synchronous_execution) {
779 "Process cannot be continued from its current state (%s).\n",
787#define LLDB_OPTIONS_thread_until
788#include "CommandOptions.inc"
810 switch (short_option) {
821 option_arg.str().c_str());
828 option_arg.str().c_str());
836 if (
error.Success()) {
844 llvm_unreachable(
"Unimplemented option");
857 return llvm::ArrayRef(g_thread_until_options);
869 interpreter,
"thread until",
870 "Continue until a line number or address is reached by the "
871 "current or specified thread. Stops when returning from "
872 "the current function as a safety measure. "
873 "The target line number(s) are given as arguments, and if more "
875 " is provided, stepping will stop when the first one is hit.",
877 eCommandRequiresThread | eCommandTryTargetAPILock |
878 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {
893 if (process ==
nullptr) {
894 result.
AppendError(
"need a valid process to step");
897 std::vector<uint32_t> line_numbers;
901 for (
size_t i = 0; i < num_args; i++) {
902 uint32_t line_number;
908 line_numbers.push_back(line_number);
910 }
else if (
m_options.m_until_addrs.empty()) {
924 if (thread ==
nullptr) {
927 "Thread index %u is out of range (valid values are 0 - %u).\n",
932 const bool abort_other_plans =
false;
935 thread->GetStackFrameAtIndex(
m_options.m_frame_idx).get();
936 if (frame ==
nullptr) {
938 "Frame index %u is out of range for thread id %" PRIu64
".\n",
954 if (line_table ==
nullptr) {
956 "frame %u of thread id %" PRIu64
".\n",
962 std::vector<addr_t> address_list;
968 "function info - can't get until range.");
975 line_idx_ranges.
Append(begin, end - begin);
977 line_idx_ranges.
Sort();
979 bool found_something =
false;
985 for (uint32_t line_number : line_numbers) {
992 found_something =
true;
993 line_number = line_entry.
line;
999 while (idx < end_func_idx) {
1004 address_list.push_back(address);
1007 exact, &line_entry);
1015 address_list.push_back(address);
1018 if (address_list.empty()) {
1019 if (found_something)
1021 "Until target outside of the current function.\n");
1024 "No line entries matching until target.\n");
1029 new_plan_sp = thread->QueueThreadPlanForStepUntil(
1030 abort_other_plans, &address_list.front(), address_list.size(),
1038 new_plan_sp->SetIsControllingPlan(
true);
1039 new_plan_sp->SetOkayToDiscard(
false);
1041 result.
SetError(std::move(new_plan_status));
1046 " has no debug information.\n",
1047 m_options.m_frame_idx, thread->GetID());
1053 "Failed to set the selected thread to thread id %" PRIu64
".\n",
1060 if (synchronous_execution)
1065 if (
error.Success()) {
1068 if (synchronous_execution) {
1091#define LLDB_OPTIONS_thread_select
1092#include "CommandOptions.inc"
1108 const int short_option = g_thread_select_options[option_idx].short_option;
1109 switch (short_option) {
1114 option_arg.str().c_str());
1120 llvm_unreachable(
"Unimplemented option");
1127 return llvm::ArrayRef(g_thread_select_options);
1135 "Change the currently selected thread.",
1136 "thread select <thread-index> (or -t <thread-id>)",
1137 eCommandRequiresProcess | eCommandTryTargetAPILock |
1138 eCommandProcessMustBeLaunched |
1139 eCommandProcessMustBePaused) {
1150 arg.push_back(thread_idx_arg);
1177 if (process ==
nullptr) {
1183 "'%s' takes exactly one thread index argument, or a thread ID "
1184 "option:\nUsage: %s\n",
1190 "and a thread index argument:\nUsage: %s\n",
1195 Thread *new_thread =
nullptr;
1204 if (new_thread ==
nullptr) {
1212 if (new_thread ==
nullptr) {
1233 interpreter,
"thread list",
1234 "Show a summary of each thread in the current target process. "
1235 "Use 'settings set thread-format' to customize the individual "
1238 eCommandRequiresProcess | eCommandTryTargetAPILock |
1239 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {}
1248 const bool only_threads_with_stop_reason =
false;
1249 const uint32_t start_frame = 0;
1250 const uint32_t num_frames = 0;
1251 const uint32_t num_frames_with_source = 0;
1253 process->
GetThreadStatus(strm, only_threads_with_stop_reason, start_frame,
1254 num_frames, num_frames_with_source,
false);
1259#define LLDB_OPTIONS_thread_info
1260#include "CommandOptions.inc"
1281 switch (short_option) {
1295 llvm_unreachable(
"Unimplemented option");
1301 return llvm::ArrayRef(g_thread_info_options);
1311 interpreter,
"thread info",
1312 "Show an extended summary of one or "
1313 "more threads. Defaults to the "
1316 eCommandRequiresProcess | eCommandTryTargetAPILock |
1317 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {
1335 m_exe_ctx.GetProcessPtr()->GetThreadList().FindThreadByID(tid);
1342 Thread *thread = thread_sp.get();
1343 if (
m_options.m_backing_thread && thread->GetBackingThread())
1351 thread->GetIndexID());
1366 interpreter,
"thread exception",
1367 "Display the current exception object for a thread. Defaults to "
1368 "the current thread.",
1370 eCommandRequiresProcess | eCommandTryTargetAPILock |
1371 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {}
1385 m_exe_ctx.GetProcessPtr()->GetThreadList().FindThreadByID(tid);
1393 ValueObjectSP exception_object_sp = thread_sp->GetCurrentException();
1394 if (exception_object_sp) {
1395 if (llvm::Error
error = exception_object_sp->Dump(strm)) {
1401 ThreadSP exception_thread_sp = thread_sp->GetCurrentExceptionBacktrace();
1402 if (exception_thread_sp && exception_thread_sp->IsValid()) {
1403 const uint32_t num_frames_with_source = 0;
1404 const bool stop_format =
false;
1405 exception_thread_sp->GetStatus(strm, 0,
UINT32_MAX,
1406 num_frames_with_source, stop_format,
1418 interpreter,
"thread siginfo",
1419 "Display the current siginfo object for a thread. Defaults to "
1420 "the current thread.",
1422 eCommandRequiresProcess | eCommandTryTargetAPILock |
1423 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {}
1437 m_exe_ctx.GetProcessPtr()->GetThreadList().FindThreadByID(tid);
1447 thread_sp->GetIndexID());
1450 ValueObjectSP exception_object_sp = thread_sp->GetSiginfoValue();
1451 if (exception_object_sp) {
1452 if (llvm::Error
error = exception_object_sp->Dump(strm)) {
1457 strm.
Printf(
"(no siginfo)\n");
1465#define LLDB_OPTIONS_thread_return
1466#include "CommandOptions.inc"
1485 switch (short_option) {
1494 "invalid boolean value '%s' for 'x' option",
1495 option_arg.str().c_str());
1499 llvm_unreachable(
"Unimplemented option");
1509 return llvm::ArrayRef(g_thread_return_options);
1519 "Prematurely return from a stack frame, "
1520 "short-circuiting execution of newer frames "
1521 "and optionally yielding a specified value. Defaults "
1522 "to the exiting the current stack "
1525 eCommandRequiresFrame | eCommandTryTargetAPILock |
1526 eCommandProcessMustBeLaunched |
1527 eCommandProcessMustBePaused) {
1541 if (command.starts_with(
"-x")) {
1542 if (command.size() != 2U)
1543 result.
AppendWarning(
"Return values ignored when returning from user "
1544 "called expressions");
1548 error = thread->UnwindInnermostExpression();
1549 if (!
error.Success()) {
1561 "Could not select 0th frame after unwinding expression.");
1570 uint32_t frame_idx = frame_sp->GetFrameIndex();
1572 if (frame_sp->IsInlined()) {
1573 result.
AppendError(
"don't know how to return from inlined frames");
1577 if (!command.empty()) {
1586 return_valobj_sp, options);
1588 if (return_valobj_sp)
1590 "Error evaluating result expression: %s",
1591 return_valobj_sp->GetError().AsCString());
1594 "Unknown error evaluating result expression.");
1601 const bool broadcast =
true;
1602 error = thread_sp->ReturnFromFrame(frame_sp, return_valobj_sp, broadcast);
1603 if (!
error.Success()) {
1605 "Error returning from frame %d of thread %d: %s.", frame_idx,
1606 thread_sp->GetIndexID(),
error.AsCString());
1617#define LLDB_OPTIONS_thread_jump
1618#include "CommandOptions.inc"
1641 switch (short_option) {
1650 option_arg.str().c_str());
1653 option_arg.consume_front(
"+");
1657 option_arg.str().c_str());
1668 llvm_unreachable(
"Unimplemented option");
1674 return llvm::ArrayRef(g_thread_jump_options);
1686 interpreter,
"thread jump",
1687 "Sets the program counter to a new address.",
"thread jump",
1688 eCommandRequiresFrame | eCommandTryTargetAPILock |
1689 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused) {}
1714 if (!reg_ctx->
SetPC(callAddr)) {
1716 thread->GetIndexID());
1721 int32_t line = (int32_t)
m_options.m_line_num;
1727 if (
m_options.m_filenames.GetSize() == 1)
1728 file =
m_options.m_filenames.GetFileSpecAtIndex(0);
1732 "No source file available for the current location.");
1736 std::string warnings;
1737 Status err = thread->JumpToLine(file, line,
m_options.m_force, &warnings);
1744 if (!warnings.empty())
1757#define LLDB_OPTIONS_thread_plan_list
1758#include "CommandOptions.inc"
1776 switch (short_option) {
1782 if (option_arg.getAsInteger(0, tid))
1784 option_arg.str().c_str());
1794 llvm_unreachable(
"Unimplemented option");
1808 return llvm::ArrayRef(g_thread_plan_list_options);
1820 interpreter,
"thread plan list",
1821 "Show thread plans for one or more threads. If no threads are "
1822 "specified, show the "
1823 "current thread. Use the thread-index \"all\" to see all threads.",
1825 eCommandRequiresProcess | eCommandRequiresThread |
1826 eCommandTryTargetAPILock | eCommandProcessMustBeLaunched |
1827 eCommandProcessMustBePaused) {}
1840 m_exe_ctx.GetProcessPtr()->DumpThreadPlans(
1871 if (llvm::is_contained(
m_options.m_tids, tid))
1894 "Discards thread plans up to and including the "
1895 "specified index (see 'thread plan list'.) "
1896 "Only user visible plans can be discarded.",
1898 eCommandRequiresProcess | eCommandRequiresThread |
1899 eCommandTryTargetAPILock |
1900 eCommandProcessMustBeLaunched |
1901 eCommandProcessMustBePaused) {
1913 m_exe_ctx.GetThreadPtr()->AutoCompleteThreadPlans(request);
1920 "thread plan index - but got %zu.",
1925 uint32_t thread_plan_idx;
1928 "Invalid thread index: \"%s\" - should be unsigned int.",
1933 if (thread_plan_idx == 0) {
1935 "You wouldn't really want me to discard the base thread plan.");
1939 if (thread->DiscardUserThreadPlansUpToIndex(thread_plan_idx)) {
1943 "Could not find User thread plan with index %s.",
1953 "Removes any thread plans associated with "
1954 "currently unreported threads. "
1955 "Specify one or more TID's to remove, or if no "
1956 "TID's are provides, remove threads for all "
1957 "unreported threads",
1959 eCommandRequiresProcess |
1960 eCommandTryTargetAPILock |
1961 eCommandProcessMustBeLaunched |
1962 eCommandProcessMustBePaused) {
1979 std::lock_guard<std::recursive_mutex> guard(
1982 for (
size_t i = 0; i < num_args; i++) {
2005 interpreter,
"plan",
2006 "Commands for managing thread plans that control execution.",
2007 "thread plan <subcommand> [<subcommand objects]") {
2029 interpreter,
"trace thread export",
2030 "Commands for exporting traces of the threads in the current "
2031 "process to different formats.",
2032 "thread trace export <export-plugin> [<subcommand objects>]") {
2035 for (llvm::StringRef plugin_name =
2037 !plugin_name.empty();
2053 true, interpreter,
"thread trace start",
2054 "Start tracing threads with the corresponding trace "
2055 "plug-in for the current process.",
2056 "thread trace start [<trace-options>]") {}
2070 interpreter,
"thread trace stop",
2071 "Stop tracing threads, including the ones traced with the "
2072 "\"process trace start\" command."
2073 "Defaults to the current thread. Thread indices can be "
2074 "specified as arguments.\n Use the thread-index \"all\" to stop "
2076 "for all existing threads.",
2077 "thread trace stop [<thread-index> <thread-index> ...]",
2078 eCommandRequiresProcess | eCommandTryTargetAPILock |
2079 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused |
2080 eCommandProcessMustBeTraced) {}
2085 llvm::ArrayRef<lldb::tid_t> tids)
override {
2088 TraceSP trace_sp = process_sp->GetTarget().GetTrace();
2090 if (llvm::Error err = trace_sp->Stop(tids))
2105 uint32_t thread_idx;
2107 if (!llvm::to_integer(arg, thread_idx)) {
2119#define LLDB_OPTIONS_thread_trace_dump_function_calls
2120#include "CommandOptions.inc"
2135 switch (short_option) {
2150 llvm_unreachable(
"Unimplemented option");
2161 return llvm::ArrayRef(g_thread_trace_dump_function_calls_options);
2173 interpreter,
"thread trace dump function-calls",
2174 "Dump the traced function-calls for one thread. If no "
2175 "thread is specified, the current thread is used.",
2177 eCommandRequiresProcess | eCommandRequiresThread |
2178 eCommandTryTargetAPILock | eCommandProcessMustBeLaunched |
2179 eCommandProcessMustBePaused | eCommandProcessMustBeTraced) {
2195 llvm::Expected<TraceCursorSP> cursor_or_error =
2196 m_exe_ctx.GetTargetSP()->GetTrace()->CreateNewCursor(*thread_sp);
2198 if (!cursor_or_error) {
2199 result.
AppendError(llvm::toString(cursor_or_error.takeError()));
2204 std::optional<StreamFile> out_file;
2206 out_file.emplace(
m_options.m_output_file->GetPath().c_str(),
2211 m_options.m_dumper_options.forwards =
true;
2224#define LLDB_OPTIONS_thread_trace_dump_instructions
2225#include "CommandOptions.inc"
2240 switch (short_option) {
2243 if (option_arg.empty() || option_arg.getAsInteger(0, count) ||
2246 "invalid integer value for option '%s'",
2247 option_arg.str().c_str());
2258 if (option_arg.empty() || option_arg.getAsInteger(0, skip) || skip < 0)
2260 "invalid integer value for option '%s'",
2261 option_arg.str().c_str());
2268 if (option_arg.empty() || option_arg.getAsInteger(0,
id))
2270 "invalid integer value for option '%s'",
2271 option_arg.str().c_str());
2319 llvm_unreachable(
"Unimplemented option");
2332 return llvm::ArrayRef(g_thread_trace_dump_instructions_options);
2346 interpreter,
"thread trace dump instructions",
2347 "Dump the traced instructions for one thread. If no "
2348 "thread is specified, show the current thread.",
2350 eCommandRequiresProcess | eCommandRequiresThread |
2351 eCommandTryTargetAPILock | eCommandProcessMustBeLaunched |
2352 eCommandProcessMustBePaused | eCommandProcessMustBeTraced) {
2361 uint32_t index)
override {
2364 if (cmd.find(
" --continue") == std::string::npos)
2365 cmd +=
" --continue";
2384 llvm::Expected<TraceCursorSP> cursor_or_error =
2385 m_exe_ctx.GetTargetSP()->GetTrace()->CreateNewCursor(*thread_sp);
2387 if (!cursor_or_error) {
2388 result.
AppendError(llvm::toString(cursor_or_error.takeError()));
2394 !cursor_sp->HasId(*
m_options.m_dumper_options.id)) {
2399 std::optional<StreamFile> out_file;
2401 out_file.emplace(
m_options.m_output_file->GetPath().c_str(),
2427#define LLDB_OPTIONS_thread_trace_dump_info
2428#include "CommandOptions.inc"
2443 switch (short_option) {
2453 llvm_unreachable(
"Unimplemented option");
2464 return llvm::ArrayRef(g_thread_trace_dump_info_options);
2474 interpreter,
"thread trace dump info",
2475 "Dump the traced information for one or more threads. If no "
2476 "threads are specified, show the current thread. Use the "
2477 "thread-index \"all\" to see all threads.",
2479 eCommandRequiresProcess | eCommandTryTargetAPILock |
2480 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused |
2481 eCommandProcessMustBeTraced) {}
2491 m_exe_ctx.GetProcessPtr()->GetThreadList().FindThreadByID(tid);
2505 interpreter,
"dump",
2506 "Commands for displaying trace information of the threads "
2507 "in the current process.",
2508 "thread trace dump <subcommand> [<subcommand objects>]") {
2526 interpreter,
"trace",
2527 "Commands for operating on traces of the threads in the current "
2529 "thread trace <subcommand> [<subcommand objects>]") {
2548 "Commands for operating on "
2549 "one or more threads in "
2550 "the current process.",
2551 "thread <subcommand> [<subcommand-options>]") {
2574 interpreter,
"thread step-in",
2575 "Source level single step, stepping into calls. Defaults "
2576 "to current thread unless specified.",
2581 interpreter,
"thread step-out",
2582 "Finish executing the current stack frame and stop after "
2583 "returning. Defaults to current thread unless specified.",
2588 interpreter,
"thread step-over",
2589 "Source level single step, stepping over calls. Defaults "
2590 "to current thread unless specified.",
2595 interpreter,
"thread step-inst",
2596 "Instruction level single step, stepping into calls. "
2597 "Defaults to current thread unless specified.",
2602 interpreter,
"thread step-inst-over",
2603 "Instruction level single step, stepping over calls. "
2604 "Defaults to current thread unless specified.",
2610 interpreter,
"thread step-scripted",
2611 "Step as instructed by the script class passed in the -C option. "
2612 "You can also specify a dictionary of key (-k) and value (-v) pairs "
2613 "that will be used to populate an SBStructuredData Dictionary, which "
2614 "will be passed to the constructor of the class implementing the "
2615 "scripted step. See the Python Reference for more details.",
static ThreadSP GetSingleThreadFromArgs(ExecutionContext &exe_ctx, Args &args, CommandReturnObject &result)
static llvm::raw_ostream & error(Stream &strm)
#define INTERRUPT_REQUESTED(debugger,...)
This handy define will keep you from having to generate a report for the interruption by hand.
~CommandObjectMultiwordThreadPlan() override=default
CommandObjectMultiwordThreadPlan(CommandInterpreter &interpreter)
~CommandObjectMultiwordTraceDump() override=default
CommandObjectMultiwordTraceDump(CommandInterpreter &interpreter)
CommandObjectMultiwordTrace(CommandInterpreter &interpreter)
~CommandObjectMultiwordTrace() override=default
~CommandOptions() override=default
void OptionParsingStarting(ExecutionContext *execution_context) override
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
bool m_filtered_backtrace
bool m_extended_backtrace
Options * GetOptions() override
CommandObjectThreadBacktrace(CommandInterpreter &interpreter)
std::optional< std::string > GetRepeatCommand(Args ¤t_args, uint32_t index) override
Get the command that appropriate for a "repeat" of the current command.
void DoExtendedBacktrace(Thread *thread, CommandReturnObject &result)
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override
~CommandObjectThreadBacktrace() override=default
~CommandObjectThreadContinue() override=default
void DoExecute(Args &command, CommandReturnObject &result) override
CommandObjectThreadContinue(CommandInterpreter &interpreter)
CommandObjectThreadException(CommandInterpreter &interpreter)
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override
~CommandObjectThreadException() override=default
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
~CommandOptions() override=default
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
void OptionParsingStarting(ExecutionContext *execution_context) override
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
CommandObjectThreadInfo(CommandInterpreter &interpreter)
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override
~CommandObjectThreadInfo() override=default
Options * GetOptions() override
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
void OptionParsingStarting(ExecutionContext *execution_context) override
~CommandOptions() override=default
CommandObjectThreadJump(CommandInterpreter &interpreter)
void DoExecute(Args &args, CommandReturnObject &result) override
~CommandObjectThreadJump() override=default
Options * GetOptions() override
void DoExecute(Args &command, CommandReturnObject &result) override
~CommandObjectThreadList() override=default
CommandObjectThreadList(CommandInterpreter &interpreter)
void DoExecute(Args &args, CommandReturnObject &result) override
CommandObjectThreadPlanDiscard(CommandInterpreter &interpreter)
~CommandObjectThreadPlanDiscard() override=default
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
~CommandOptions() override=default
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
std::vector< lldb::tid_t > m_tids
void OptionParsingStarting(ExecutionContext *execution_context) override
Options * GetOptions() override
CommandObjectThreadPlanList(CommandInterpreter &interpreter)
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override
~CommandObjectThreadPlanList() override=default
void DoExecute(Args &command, CommandReturnObject &result) override
CommandObjectThreadPlanPrune(CommandInterpreter &interpreter)
~CommandObjectThreadPlanPrune() override=default
void DoExecute(Args &args, CommandReturnObject &result) override
~CommandOptions() override=default
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
void OptionParsingStarting(ExecutionContext *execution_context) override
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
Options * GetOptions() override
CommandObjectThreadReturn(CommandInterpreter &interpreter)
void DoExecute(llvm::StringRef command, CommandReturnObject &result) override
~CommandObjectThreadReturn() override=default
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
~OptionGroupThreadSelect() override=default
OptionGroupThreadSelect()
void OptionParsingStarting(ExecutionContext *execution_context) override
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
void DoExecute(Args &command, CommandReturnObject &result) override
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
OptionGroupOptions m_option_group
CommandObjectThreadSelect(CommandInterpreter &interpreter)
~CommandObjectThreadSelect() override=default
OptionGroupThreadSelect m_options
Options * GetOptions() override
~CommandObjectThreadSiginfo() override=default
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override
CommandObjectThreadSiginfo(CommandInterpreter &interpreter)
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
OptionGroupPythonClassWithDict m_class_options
~CommandObjectThreadStepWithTypeAndScope() override=default
OptionGroupOptions m_all_options
Options * GetOptions() override
void DoExecute(Args &command, CommandReturnObject &result) override
ThreadStepScopeOptionGroup m_options
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
CommandObjectThreadStepWithTypeAndScope(CommandInterpreter &interpreter, const char *name, const char *help, const char *syntax, StepType step_type)
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
uint32_t m_step_thread_idx
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
void OptionParsingStarting(ExecutionContext *execution_context) override
~CommandOptions() override=default
std::vector< lldb::addr_t > m_until_addrs
Options * GetOptions() override
CommandObjectThreadUntil(CommandInterpreter &interpreter)
~CommandObjectThreadUntil() override=default
void DoExecute(Args &command, CommandReturnObject &result) override
TraceDumperOptions m_dumper_options
~CommandOptions() override=default
static const size_t kDefaultCount
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
void OptionParsingStarting(ExecutionContext *execution_context) override
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
std::optional< FileSpec > m_output_file
void DoExecute(Args &args, CommandReturnObject &result) override
CommandObjectTraceDumpFunctionCalls(CommandInterpreter &interpreter)
~CommandObjectTraceDumpFunctionCalls() override=default
Options * GetOptions() override
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
void OptionParsingStarting(ExecutionContext *execution_context) override
~CommandOptions() override=default
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
~CommandObjectTraceDumpInfo() override=default
Options * GetOptions() override
bool HandleOneThread(lldb::tid_t tid, CommandReturnObject &result) override
CommandObjectTraceDumpInfo(CommandInterpreter &interpreter)
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
std::optional< FileSpec > m_output_file
~CommandOptions() override=default
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
Set the value of an option.
TraceDumperOptions m_dumper_options
static const size_t kDefaultCount
void OptionParsingStarting(ExecutionContext *execution_context) override
CommandObjectTraceDumpInstructions(CommandInterpreter &interpreter)
Options * GetOptions() override
~CommandObjectTraceDumpInstructions() override=default
std::optional< std::string > GetRepeatCommand(Args ¤t_command_args, uint32_t index) override
Get the command that appropriate for a "repeat" of the current command.
void DoExecute(Args &args, CommandReturnObject &result) override
std::optional< lldb::user_id_t > m_last_id
CommandObjectTraceExport(CommandInterpreter &interpreter)
lldb::CommandObjectSP GetDelegateCommand(Trace &trace) override
CommandObjectTraceStart(CommandInterpreter &interpreter)
~CommandObjectTraceStop() override=default
bool DoExecuteOnThreads(Args &command, CommandReturnObject &result, llvm::ArrayRef< lldb::tid_t > tids) override
CommandObjectTraceStop(CommandInterpreter &interpreter)
void OptionParsingStarting(ExecutionContext *execution_context) override
LazyBool m_step_in_avoid_no_debug
~ThreadStepScopeOptionGroup() override=default
std::string m_avoid_regexp
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context) override
std::string m_step_in_target
bool m_end_line_is_block_end
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
LazyBool m_step_out_avoid_no_debug
ThreadStepScopeOptionGroup()
A section + offset based address range class.
Address & GetBaseAddress()
Get accessor for the base address of the range.
lldb::addr_t GetByteSize() const
Get accessor for the byte size of this range.
A section + offset based address class.
lldb::addr_t GetLoadAddress(Target *target) const
Get the load address.
lldb::addr_t GetCallableLoadAddress(Target *target, bool is_indirect=false) const
Get the load address as a callable code load address.
lldb::addr_t GetFileAddress() const
Get the file address.
bool IsValid() const
Check if the object state is valid.
A command line argument class.
size_t GetArgumentCount() const
Gets the number of arguments left in this command object.
void ReplaceArgumentAtIndex(size_t idx, llvm::StringRef arg_str, char quote_char='\0')
Replaces the argument value at index idx to arg_str if idx is a valid argument index.
void AppendArgument(llvm::StringRef arg_str, char quote_char='\0')
Appends a new argument to the end of the list argument list.
llvm::ArrayRef< ArgEntry > entries() const
const char * GetArgumentAtIndex(size_t idx) const
Gets the NULL terminated C string argument pointer for the argument at index idx.
bool GetCommandString(std::string &command) const
bool GetQuotedCommandString(std::string &command) const
A class that describes a single lexical block.
bool GetRangeContainingAddress(const Address &addr, AddressRange &range)
static bool InvokeCommonCompletionCallbacks(CommandInterpreter &interpreter, uint32_t completion_mask, lldb_private::CompletionRequest &request, SearchFilter *searcher)
CommandObjectIterateOverThreads(CommandInterpreter &interpreter, const char *name, const char *help, const char *syntax, uint32_t flags)
void DoExecute(Args &command, CommandReturnObject &result) override
CommandObjectMultipleThreads(CommandInterpreter &interpreter, const char *name, const char *help, const char *syntax, uint32_t flags)
CommandObjectMultiwordThread(CommandInterpreter &interpreter)
~CommandObjectMultiwordThread() override
bool LoadSubCommand(llvm::StringRef cmd_name, const lldb::CommandObjectSP &command_obj) override
CommandObjectMultiword(CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
friend class CommandInterpreter
CommandObjectParsed(CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
CommandObjectRaw(CommandInterpreter &interpreter, llvm::StringRef name, llvm::StringRef help="", llvm::StringRef syntax="", uint32_t flags=0)
CommandObjectTraceProxy(bool live_debug_session_only, CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
std::vector< CommandArgumentData > CommandArgumentEntry
void AddSimpleArgumentList(lldb::CommandArgumentType arg_type, ArgumentRepetitionType repetition_type=eArgRepeatPlain)
ExecutionContext m_exe_ctx
std::vector< CommandArgumentEntry > m_arguments
CommandInterpreter & GetCommandInterpreter()
CommandInterpreter & m_interpreter
Thread * GetDefaultThread()
virtual void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector)
The default version handles argument definitions that have only one argument type,...
virtual llvm::StringRef GetSyntax()
void AppendMessage(llvm::StringRef in_string)
void void AppendError(llvm::StringRef in_string)
void SetStatus(lldb::ReturnStatus status)
void SetError(Status error)
void AppendErrorWithFormat(const char *format,...) __attribute__((format(printf
void AppendMessageWithFormat(const char *format,...) __attribute__((format(printf
void SetDidChangeProcessState(bool b)
void void AppendWarning(llvm::StringRef in_string)
void AppendErrorWithFormatv(const char *format, Args &&...args)
Stream & GetOutputStream()
uint32_t FindLineEntry(uint32_t start_idx, uint32_t line, const FileSpec *file_spec_ptr, bool exact, LineEntry *line_entry)
Find the line entry by line and optional inlined file spec.
LineTable * GetLineTable()
Get the line table for the compile unit.
"lldb/Utility/ArgCompletionRequest.h"
size_t GetCursorIndex() const
void SetUnwindOnError(bool unwind=false)
void SetUseDynamic(lldb::DynamicValueType dynamic=lldb::eDynamicCanRunTarget)
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
const lldb::TargetSP & GetTargetSP() const
Get accessor to get the target shared pointer.
const lldb::ProcessSP & GetProcessSP() const
Get accessor to get the process shared pointer.
Process & GetProcessRef() const
Returns a reference to the process object.
const lldb::ThreadSP & GetThreadSP() const
Get accessor to get the thread shared pointer.
bool GetRangeContainingLoadAddress(lldb::addr_t load_addr, Target &target, AddressRange &range)
AddressRanges GetAddressRanges()
std::pair< uint32_t, uint32_t > GetLineEntryIndexRange(const AddressRange &range) const
Returns the (half-open) range of line entry indexes which overlap the given address range.
A command line option parsing protocol class.
std::vector< Option > m_getopt_table
static llvm::StringRef GetTraceExporterPluginNameAtIndex(uint32_t index)
static ThreadTraceExportCommandCreator GetThreadTraceExportCommandCreatorAtIndex(uint32_t index)
Return the callback used to create the CommandObject that will be listed under "thread trace export".
A plug-in interface definition class for debugging a process.
lldb::pid_t GetID() const
Returns the pid of the process or LLDB_INVALID_PROCESS_ID if there is no known pid.
ThreadList & GetThreadList()
Status Resume()
Resumes all of a process's threads as configured using the Thread run control functions.
void PruneThreadPlans()
Prune ThreadPlanStacks for all unreported threads.
bool PruneThreadPlansForTID(lldb::tid_t tid)
Prune ThreadPlanStacks for unreported threads.
virtual SystemRuntime * GetSystemRuntime()
Get the system runtime plug-in for this process.
bool DumpThreadPlansForTID(Stream &strm, lldb::tid_t tid, lldb::DescriptionLevel desc_level, bool internal, bool condense_trivial, bool skip_unreported_plans)
Dump the thread plans associated with thread with tid.
Status ResumeSynchronous(Stream *stream)
Resume a process, and wait for it to stop.
size_t GetThreadStatus(Stream &ostrm, bool only_threads_with_stop_reason, uint32_t start_frame, uint32_t num_frames, uint32_t num_frames_with_source, bool stop_format)
lldb::StateType GetState()
Get accessor for the current process state.
void GetStatus(Stream &ostrm)
uint32_t GetIOHandlerID() const
void SyncIOHandler(uint32_t iohandler_id, const Timeout< std::micro > &timeout)
Waits for the process state to be running within a given msec timeout.
uint32_t FindEntryIndexThatContains(B addr) const
BaseType GetMaxRangeEnd(BaseType fail_value) const
void Append(const Entry &entry)
BaseType GetMinRangeBase(BaseType fail_value) const
This base class provides an interface to stack frames.
const SymbolContext & GetSymbolContext(lldb::SymbolContextItem resolve_scope)
Provide a SymbolContext for this StackFrame's current pc value.
bool HasDebugInformation()
Determine whether this StackFrame has debug information available or not.
const Address & GetFrameCodeAddress()
Get an Address for the current pc value in this StackFrame.
static Status FromErrorStringWithFormat(const char *format,...) __attribute__((format(printf
static Status FromErrorString(const char *str)
bool Fail() const
Test for error condition.
llvm::StringRef GetString() const
A stream class that can stream formatted output to a file.
size_t Printf(const char *format,...) __attribute__((format(printf
Output printf formatted output to the stream.
Defines a symbol context baton that can be handed other debug core functions.
llvm::Error GetAddressRangeFromHereToEndLine(uint32_t end_line, AddressRange &range)
Function * function
The Function for a given query.
Block * block
The Block for a given query.
CompileUnit * comp_unit
The CompileUnit for a given query.
LineEntry line_entry
The LineEntry for a given query.
A plug-in interface definition class for system runtimes.
virtual lldb::ThreadSP GetExtendedBacktraceThread(lldb::ThreadSP thread, ConstString type)
Return a Thread which shows the origin of this thread's creation.
virtual const std::vector< ConstString > & GetExtendedBacktraceTypes()
Return a list of thread origin extended backtraces that may be available.
lldb::ExpressionResults EvaluateExpression(llvm::StringRef expression, ExecutionContextScope *exe_scope, lldb::ValueObjectSP &result_valobj_sp, const EvaluateExpressionOptions &options=EvaluateExpressionOptions(), std::string *fixed_expression=nullptr, ValueObject *ctx_obj=nullptr)
uint32_t GetSize(bool can_update=true)
bool SetSelectedThreadByID(lldb::tid_t tid, bool notify=false)
lldb::ThreadSP FindThreadByIndexID(uint32_t index_id, bool can_update=true)
lldb::ThreadSP GetThreadAtIndex(uint32_t idx, bool can_update=true)
std::recursive_mutex & GetMutex() const override
lldb::ThreadSP FindThreadByID(lldb::tid_t tid, bool can_update=true)
void SetAvoidRegexp(const char *name)
virtual lldb::ThreadSP GetBackingThread() const
Class used to dump the instructions of a TraceCursor using its current state and granularity.
std::optional< lldb::user_id_t > DumpInstructions(size_t count)
Dump count instructions of the thread trace starting at the current cursor position.
void DumpFunctionCalls()
Dump all function calls forwards chronologically and hierarchically.
A plug-in interface definition class for trace information.
virtual lldb::CommandObjectSP GetThreadTraceStartCommand(CommandInterpreter &interpreter)=0
Get the command handle for the "thread trace start" command.
#define LLDB_INVALID_LINE_NUMBER
#define LLDB_INVALID_THREAD_ID
#define LLDB_INVALID_INDEX32
#define LLDB_INVALID_ADDRESS
#define LLDB_INVALID_FRAME_ID
@ DoNoSelectMostRelevantFrame
A class that represents a running process on the host machine.
std::vector< OptionArgElement > OptionElementVector
const char * StateAsCString(lldb::StateType state)
Converts a StateType to a C string.
const char * toString(AppleArm64ExceptionClass EC)
lldb::CommandObjectSP(* ThreadTraceExportCommandCreator)(CommandInterpreter &interpreter)
@ eStepTypeTraceOver
Single step one instruction, stepping over.
@ eStepTypeOut
Single step out a specified context.
@ eStepTypeScripted
A step type implemented by the script interpreter.
@ eStepTypeInto
Single step into a specified context.
@ eStepTypeOver
Single step over a specified context.
@ eStepTypeTrace
Single step one instruction.
std::shared_ptr< lldb_private::Trace > TraceSP
std::shared_ptr< lldb_private::ThreadPlan > ThreadPlanSP
std::shared_ptr< lldb_private::StackFrame > StackFrameSP
DescriptionLevel
Description levels for "void GetDescription(Stream *, DescriptionLevel)" calls.
@ eDescriptionLevelVerbose
std::shared_ptr< lldb_private::Thread > ThreadSP
std::shared_ptr< lldb_private::CommandObject > CommandObjectSP
std::shared_ptr< lldb_private::ValueObject > ValueObjectSP
StateType
Process and Thread States.
@ eStateStopped
Process or thread is stopped and can be examined.
@ eStateSuspended
Process or thread is in a suspended state as far as the debugger is concerned while other processes o...
@ eStateRunning
Process or thread is running and can't be examined.
@ eStateCrashed
Process or thread has crashed and can be examined.
ExpressionResults
The results of expression evaluation.
std::shared_ptr< lldb_private::Process > ProcessSP
@ eReturnStatusSuccessContinuingNoResult
@ eReturnStatusSuccessFinishResult
@ eReturnStatusSuccessFinishNoResult
@ eArgTypeUnsignedInteger
@ eTraceCursorSeekTypeEnd
The end of the trace, i.e the most recent item.
std::shared_ptr< lldb_private::TraceCursor > TraceCursorSP
std::shared_ptr< lldb_private::Target > TargetSP
Used to build individual command argument lists.
ArgumentRepetitionType arg_repetition
lldb::CommandArgumentType arg_type
uint32_t arg_opt_set_association
This arg might be associated only with some particular option set(s).
A line table entry class.
AddressRange range
The section offset address range for this line entry.
uint32_t line
The source line number, or LLDB_INVALID_LINE_NUMBER if there is no line number information.
const FileSpec & GetFile() const
Helper to access the file.
static int64_t ToOptionEnum(llvm::StringRef s, const OptionEnumValues &enum_values, int32_t fail_value, Status &error)
static lldb::addr_t ToAddress(const ExecutionContext *exe_ctx, llvm::StringRef s, lldb::addr_t fail_value, Status *error_ptr)
Try to parse an address.
static bool ToBoolean(llvm::StringRef s, bool fail_value, bool *success_ptr)
Class that holds the configuration used by TraceDumper for traversing and dumping instructions.
lldb::user_id_t GetID() const
Get accessor for the user ID.