LLDB mainline
CommandObjectRegister.cpp
Go to the documentation of this file.
1//===-- CommandObjectRegister.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#include "lldb/Core/Debugger.h"
23#include "lldb/Target/Process.h"
26#include "lldb/Target/Thread.h"
27#include "lldb/Utility/Args.h"
30#include "llvm/Support/Errno.h"
31
32using namespace lldb;
33using namespace lldb_private;
34
35// "register read"
36#define LLDB_OPTIONS_register_read
37#include "CommandOptions.inc"
38
39static size_t GetNameSize(const RegisterInfo *reg_info, bool use_primary_name) {
40 const char *reg_name = use_primary_name ? reg_info->name : reg_info->alt_name;
41 return reg_name ? strlen(reg_name) : 0;
42}
43
45 const RegisterSet &reg_set,
46 bool use_primary_name,
47 bool primitive_only) {
48 const size_t num_registers = reg_set.num_registers;
49 size_t name_right_align_at = 0;
50
51 // Loop through all the registers to find the longest register name.
52 for (size_t reg_idx = 0; reg_idx < num_registers; ++reg_idx) {
53 const size_t reg = reg_set.registers[reg_idx];
54 if (const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex(reg)) {
55 // Derived registers are skipped if primitive_only is true.
56 if (primitive_only && reg_info->value_regs)
57 continue;
58
59 name_right_align_at = std::max(name_right_align_at,
60 GetNameSize(reg_info, use_primary_name));
61 }
62 }
63
64 return name_right_align_at;
65}
66
67// We expect that [command] only contains register names to be printed.
68static size_t ComputeLongestRegisterName(Args &command,
69 RegisterContext *reg_ctx,
70 bool use_primary_name) {
71 size_t name_right_align_at = 0;
72
73 // Loop through all the arguments to find the longest register name.
74 for (auto &entry : command) {
75 // In most LLDB commands we accept '$<register>' as well as '<register>'
76 // for example '$rbx' for 'rbx'. However internally the name does not have
77 // '$'.
78 llvm::StringRef arg_str = entry.ref();
79 arg_str.consume_front("$");
80
81 if (const RegisterInfo *reg_info =
82 reg_ctx->GetRegisterInfoByName(arg_str)) {
83 name_right_align_at = std::max(name_right_align_at,
84 GetNameSize(reg_info, use_primary_name));
85 }
86 }
87
88 return name_right_align_at;
89}
90
92public:
95 interpreter, "register read",
96 "Dump the contents of one or more register values from the current "
97 "frame. If no register is specified, dumps them all.",
98 nullptr,
99 eCommandRequiresFrame | eCommandRequiresRegContext |
100 eCommandProcessMustBeLaunched | eCommandProcessMustBePaused),
103 "Specify a format to be used for display. This "
104 "overrides any other register type information."}}) {
106
107 // Add the "--format"
114 }
115
116 ~CommandObjectRegisterRead() override = default;
117
118 void
120 OptionElementVector &opt_element_vector) override {
121 if (!m_exe_ctx.HasProcessScope())
122 return;
123 CommandObject::HandleArgumentCompletion(request, opt_element_vector);
124 }
125
126 Options *GetOptions() override { return &m_option_group; }
127
128 bool DumpRegister(const ExecutionContext &exe_ctx, Stream &strm,
129 RegisterContext &reg_ctx, const RegisterInfo &reg_info,
130 bool print_type, size_t reg_name_right_align_at) {
131 RegisterValue reg_value;
132 if (!reg_ctx.ReadRegister(&reg_info, reg_value))
133 return false;
134
135 strm.Indent();
136
137 bool prefix_with_altname = (bool)m_command_options.alternate_name;
138 bool prefix_with_name = !prefix_with_altname;
139 DumpRegisterValue(reg_value, strm, reg_info, prefix_with_name,
140 prefix_with_altname, m_format_options.GetFormat(),
141 reg_name_right_align_at,
142 exe_ctx.GetBestExecutionContextScope(), print_type,
143 exe_ctx.GetTargetSP());
144 if ((reg_info.encoding == eEncodingUint) ||
145 (reg_info.encoding == eEncodingSint)) {
146 Process *process = exe_ctx.GetProcessPtr();
147 if (process && reg_info.byte_size == process->GetAddressByteSize()) {
148 addr_t reg_addr = reg_value.GetAsUInt64(LLDB_INVALID_ADDRESS);
149 if (reg_addr != LLDB_INVALID_ADDRESS) {
150 Address so_reg_addr;
151 if (exe_ctx.GetTargetRef().ResolveLoadAddress(reg_addr,
152 so_reg_addr)) {
153 strm.PutCString(" ");
154 so_reg_addr.Dump(&strm, exe_ctx.GetBestExecutionContextScope(),
156 }
157 }
158 }
159 }
160 strm.EOL();
161 return true;
162 }
163
164 bool DumpRegisterSet(const ExecutionContext &exe_ctx, Stream &strm,
165 RegisterContext *reg_ctx, size_t set_idx,
166 bool primitive_only = false) {
167 uint32_t unavailable_count = 0;
168 uint32_t available_count = 0;
169
170 if (!reg_ctx)
171 return false; // thread has no registers (i.e. core files are corrupt,
172 // incomplete crash logs...)
173
174 const RegisterSet *const reg_set = reg_ctx->GetRegisterSet(set_idx);
175 if (reg_set) {
176 strm.Printf("%s:\n", (reg_set->name ? reg_set->name : "unknown"));
177 strm.IndentMore();
178 const size_t num_registers = reg_set->num_registers;
179 size_t reg_name_right_align_at = ComputeLongestRegisterName(
180 reg_ctx, *reg_set, !m_command_options.alternate_name, primitive_only);
181 for (size_t reg_idx = 0; reg_idx < num_registers; ++reg_idx) {
182 const uint32_t reg = reg_set->registers[reg_idx];
183 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoAtIndex(reg);
184 // Skip the dumping of derived register if primitive_only is true.
185 if (primitive_only && reg_info && reg_info->value_regs)
186 continue;
187
188 if (reg_info &&
189 DumpRegister(exe_ctx, strm, *reg_ctx, *reg_info,
190 /*print_type=*/false, reg_name_right_align_at))
191 ++available_count;
192 else
193 ++unavailable_count;
194 }
195 strm.IndentLess();
196 if (unavailable_count) {
197 strm.Indent();
198 strm.Printf("%u registers were unavailable.\n", unavailable_count);
199 }
200 strm.EOL();
201 }
202 return available_count > 0;
203 }
204
205protected:
206 void DoExecute(Args &command, CommandReturnObject &result) override {
207 Stream &strm = result.GetOutputStream();
208 RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext();
209
210 if (command.GetArgumentCount() == 0) {
211 size_t set_idx;
212
213 size_t num_register_sets = 1;
214 const size_t set_array_size = m_command_options.set_indexes.GetSize();
215 if (set_array_size > 0) {
216 for (size_t i = 0; i < set_array_size; ++i) {
217 set_idx =
218 m_command_options.set_indexes[i]->GetValueAs<uint64_t>().value_or(
219 UINT32_MAX);
220 if (set_idx < reg_ctx->GetRegisterSetCount()) {
221 if (!DumpRegisterSet(m_exe_ctx, strm, reg_ctx, set_idx)) {
222 if (errno)
223 result.AppendErrorWithFormatv("register read failed: {0}\n",
224 llvm::sys::StrError());
225 else
226 result.AppendError("unknown error while reading registers.\n");
227 break;
228 }
229 } else {
230 result.AppendErrorWithFormat("invalid register set index: %" PRIu64,
231 (uint64_t)set_idx);
232 break;
233 }
234 }
235 } else {
236 if (m_command_options.dump_all_sets)
237 num_register_sets = reg_ctx->GetRegisterSetCount();
238
239 for (set_idx = 0; set_idx < num_register_sets; ++set_idx) {
240 // When dump_all_sets option is set, dump primitive as well as
241 // derived registers.
242 DumpRegisterSet(m_exe_ctx, strm, reg_ctx, set_idx,
243 !m_command_options.dump_all_sets.GetCurrentValue());
244 }
245 }
246 } else {
247 if (m_command_options.dump_all_sets) {
248 result.AppendError("the --all option can't be used when registers "
249 "names are supplied as arguments\n");
250 } else if (m_command_options.set_indexes.GetSize() > 0) {
251 result.AppendError("the --set <set> option can't be used when "
252 "registers names are supplied as arguments\n");
253 } else {
254 int reg_name_right_align_at = ComputeLongestRegisterName(
255 command, reg_ctx, !m_command_options.alternate_name);
256 // Extra ident to be consistent with register sets dumping.
257 strm.IndentMore();
258 for (auto &entry : command) {
259 // in most LLDB commands we accept $rbx as the name for register RBX
260 // - and here we would reject it and non-existant. we should be more
261 // consistent towards the user and allow them to say reg read $rbx -
262 // internally, however, we should be strict and not allow ourselves
263 // to call our registers $rbx in our own API
264 auto arg_str = entry.ref();
265 arg_str.consume_front("$");
266
267 if (const RegisterInfo *reg_info =
268 reg_ctx->GetRegisterInfoByName(arg_str)) {
269 // If they have asked for a specific format don't obscure that by
270 // printing a structured value afterwards.
271 bool print_type = !m_format_options.GetFormatValue().OptionWasSet();
272 if (!DumpRegister(m_exe_ctx, strm, *reg_ctx, *reg_info, print_type,
273 reg_name_right_align_at))
274 strm.Printf("%-12s = error: unavailable\n", reg_info->name);
275 } else {
276 result.AppendErrorWithFormat("Invalid register name '%s'",
277 arg_str.str().c_str());
278 }
279 }
280 strm.IndentLess();
281 }
282 }
283 if (result.GetStatus() != eReturnStatusFailed)
285 }
286
288 public:
290 : set_indexes(OptionValue::ConvertTypeToMask(OptionValue::eTypeUInt64)),
291 dump_all_sets(false, false), // Initial and default values are false
292 alternate_name(false, false) {}
293
294 ~CommandOptions() override = default;
295
296 llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
297 return llvm::ArrayRef(g_register_read_options);
298 }
299
300 void OptionParsingStarting(ExecutionContext *execution_context) override {
301 set_indexes.Clear();
302 dump_all_sets.Clear();
303 alternate_name.Clear();
304 }
305
306 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
307 ExecutionContext *execution_context) override {
309 const int short_option = GetDefinitions()[option_idx].short_option;
310 switch (short_option) {
311 case 's': {
312 OptionValueSP value_sp(OptionValueUInt64::Create(option_value, error));
313 if (value_sp)
314 set_indexes.AppendValue(value_sp);
315 } break;
316
317 case 'a':
318 // When we don't use OptionValue::SetValueFromCString(const char *) to
319 // set an option value, it won't be marked as being set in the options
320 // so we make a call to let users know the value was set via option
321 dump_all_sets.SetCurrentValue(true);
322 dump_all_sets.SetOptionWasSet();
323 break;
324
325 case 'A':
326 // When we don't use OptionValue::SetValueFromCString(const char *) to
327 // set an option value, it won't be marked as being set in the options
328 // so we make a call to let users know the value was set via option
329 alternate_name.SetCurrentValue(true);
330 dump_all_sets.SetOptionWasSet();
331 break;
332
333 default:
334 llvm_unreachable("Unimplemented option");
335 }
336 return error;
337 }
338
339 // Instance variables to hold the values for command options.
343 };
344
348};
349
350// "register write"
352public:
354 : CommandObjectParsed(interpreter, "register write",
355 "Modify a single register value.", nullptr,
356 eCommandRequiresFrame | eCommandRequiresRegContext |
357 eCommandProcessMustBeLaunched |
358 eCommandProcessMustBePaused) {
361 CommandArgumentData register_arg;
362 CommandArgumentData value_arg;
363
364 // Define the first (and only) variant of this arg.
365 register_arg.arg_type = eArgTypeRegisterName;
366 register_arg.arg_repetition = eArgRepeatPlain;
367
368 // There is only one variant this argument could be; put it into the
369 // argument entry.
370 arg1.push_back(register_arg);
371
372 // Define the first (and only) variant of this arg.
373 value_arg.arg_type = eArgTypeValue;
375
376 // There is only one variant this argument could be; put it into the
377 // argument entry.
378 arg2.push_back(value_arg);
379
380 // Push the data for the first argument into the m_arguments vector.
381 m_arguments.push_back(arg1);
382 m_arguments.push_back(arg2);
383 }
384
385 ~CommandObjectRegisterWrite() override = default;
386
387 void
389 OptionElementVector &opt_element_vector) override {
390 if (!m_exe_ctx.HasProcessScope() || request.GetCursorIndex() != 0)
391 return;
392
395 }
396
397protected:
398 void DoExecute(Args &command, CommandReturnObject &result) override {
399 DataExtractor reg_data;
400 RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext();
401
402 if (command.GetArgumentCount() != 2) {
403 result.AppendError(
404 "register write takes exactly 2 arguments: <reg-name> <value>");
405 } else {
406 auto reg_name = command[0].ref();
407 auto value_str = command[1].ref();
408
409 // in most LLDB commands we accept $rbx as the name for register RBX -
410 // and here we would reject it and non-existant. we should be more
411 // consistent towards the user and allow them to say reg write $rbx -
412 // internally, however, we should be strict and not allow ourselves to
413 // call our registers $rbx in our own API
414 reg_name.consume_front("$");
415
416 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoByName(reg_name);
417
418 if (reg_info) {
419 RegisterValue reg_value;
420
421 Status error(reg_value.SetValueFromString(reg_info, value_str));
422 if (error.Success()) {
423 if (reg_ctx->WriteRegister(reg_info, reg_value)) {
424 // Toss all frames and anything else in the thread after a register
425 // has been written.
426 m_exe_ctx.GetThreadRef().Flush();
428 return;
429 }
430 }
431 if (error.AsCString()) {
433 "Failed to write register '%s' with value '%s': %s",
434 reg_name.str().c_str(), value_str.str().c_str(),
435 error.AsCString());
436 } else {
438 "Failed to write register '%s' with value '%s'",
439 reg_name.str().c_str(), value_str.str().c_str());
440 }
441 } else {
442 result.AppendErrorWithFormat("Register not found for '%s'",
443 reg_name.str().c_str());
444 }
445 }
446 }
447};
448
449// "register info"
451public:
453 : CommandObjectParsed(interpreter, "register info",
454 "View information about a register.", nullptr,
455 eCommandRequiresFrame | eCommandRequiresRegContext |
456 eCommandProcessMustBeLaunched |
457 eCommandProcessMustBePaused) {
458 SetHelpLong(R"(
459Name The name lldb uses for the register, optionally with an alias.
460Size The size of the register in bytes and again in bits.
461Invalidates (*) The registers that would be changed if you wrote this
462 register. For example, writing to a narrower alias of a wider
463 register would change the value of the wider register.
464Read from (*) The registers that the value of this register is constructed
465 from. For example, a narrower alias of a wider register will be
466 read from the wider register.
467In sets (*) The register sets that contain this register. For example the
468 PC will be in the "General Purpose Register" set.
469Fields (*) A table of the names and bit positions of the values contained
470 in this register.
471
472Fields marked with (*) may not always be present. Some information may be
473different for the same register when connected to different debug servers.)");
476 }
477
478 ~CommandObjectRegisterInfo() override = default;
479
480 void
482 OptionElementVector &opt_element_vector) override {
483 if (!m_exe_ctx.HasProcessScope() || request.GetCursorIndex() != 0)
484 return;
485 CommandObject::HandleArgumentCompletion(request, opt_element_vector);
486 }
487
488protected:
489 void DoExecute(Args &command, CommandReturnObject &result) override {
490 if (command.GetArgumentCount() != 1) {
491 result.AppendError("register info takes exactly 1 argument: <reg-name>");
492 return;
493 }
494
495 llvm::StringRef reg_name = command[0].ref();
496 RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext();
497 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoByName(reg_name);
498 if (reg_info) {
500 result.GetOutputStream(), *reg_ctx, *reg_info,
501 GetCommandInterpreter().GetDebugger().GetTerminalWidth());
503 } else
504 result.AppendErrorWithFormat("No register found with name '%s'",
505 reg_name.str().c_str());
506 }
507};
508
509// CommandObjectRegister constructor
511 : CommandObjectMultiword(interpreter, "register",
512 "Commands to access registers for the current "
513 "thread and stack frame.",
514 "register [read|write|info] ...") {
515 LoadSubCommand("read",
517 LoadSubCommand("write",
519 LoadSubCommand("info",
521}
522
static size_t GetNameSize(const RegisterInfo *reg_info, bool use_primary_name)
static size_t ComputeLongestRegisterName(RegisterContext *reg_ctx, const RegisterSet &reg_set, bool use_primary_name, bool primitive_only)
static llvm::raw_ostream & error(Stream &strm)
void DoExecute(Args &command, CommandReturnObject &result) override
~CommandObjectRegisterInfo() override=default
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
CommandObjectRegisterInfo(CommandInterpreter &interpreter)
Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value, ExecutionContext *execution_context) override
void OptionParsingStarting(ExecutionContext *execution_context) override
llvm::ArrayRef< OptionDefinition > GetDefinitions() override
bool DumpRegister(const ExecutionContext &exe_ctx, Stream &strm, RegisterContext &reg_ctx, const RegisterInfo &reg_info, bool print_type, size_t reg_name_right_align_at)
bool DumpRegisterSet(const ExecutionContext &exe_ctx, Stream &strm, RegisterContext *reg_ctx, size_t set_idx, bool primitive_only=false)
void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector) override
The default version handles argument definitions that have only one argument type,...
~CommandObjectRegisterRead() override=default
CommandObjectRegisterRead(CommandInterpreter &interpreter)
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,...
~CommandObjectRegisterWrite() override=default
void DoExecute(Args &command, CommandReturnObject &result) override
CommandObjectRegisterWrite(CommandInterpreter &interpreter)
A section + offset based address class.
Definition Address.h:62
@ DumpStyleResolvedDescription
Display the details about what an address resolves to.
Definition Address.h:104
bool Dump(Stream *s, ExecutionContextScope *exe_scope, DumpStyle style, DumpStyle fallback_style=DumpStyleInvalid, uint32_t addr_byte_size=UINT32_MAX, bool all_ranges=false, std::optional< Stream::HighlightSettings > settings=std::nullopt) const
Dump a description of this object to a Stream.
Definition Address.cpp:398
A command line argument class.
Definition Args.h:33
size_t GetArgumentCount() const
Gets the number of arguments left in this command object.
Definition Args.h:120
static bool InvokeCommonCompletionCallbacks(CommandInterpreter &interpreter, uint32_t completion_mask, lldb_private::CompletionRequest &request, SearchFilter *searcher)
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)
CommandObjectParsed(CommandInterpreter &interpreter, const char *name, const char *help=nullptr, const char *syntax=nullptr, uint32_t flags=0)
CommandObjectRegister(CommandInterpreter &interpreter)
std::vector< CommandArgumentData > CommandArgumentEntry
virtual void SetHelpLong(llvm::StringRef str)
void AddSimpleArgumentList(lldb::CommandArgumentType arg_type, ArgumentRepetitionType repetition_type=eArgRepeatPlain)
std::vector< CommandArgumentEntry > m_arguments
CommandInterpreter & GetCommandInterpreter()
virtual void HandleArgumentCompletion(CompletionRequest &request, OptionElementVector &opt_element_vector)
The default version handles argument definitions that have only one argument type,...
void AppendError(llvm::StringRef in_string)
void SetStatus(lldb::ReturnStatus status)
void AppendErrorWithFormat(const char *format,...) __attribute__((format(printf
void AppendErrorWithFormatv(const char *format, Args &&...args)
"lldb/Utility/ArgCompletionRequest.h"
An data extractor class.
"lldb/Target/ExecutionContext.h" A class that contains an execution context.
bool HasProcessScope() const
Returns true the ExecutionContext object contains a valid target and process.
ExecutionContextScope * GetBestExecutionContextScope() const
const lldb::TargetSP & GetTargetSP() const
Get accessor to get the target shared pointer.
Target & GetTargetRef() const
Returns a reference to the target object.
Process * GetProcessPtr() const
Returns a pointer to the process object.
static const uint32_t OPTION_GROUP_GDB_FMT
static const uint32_t OPTION_GROUP_FORMAT
void Append(OptionGroup *group)
Append options from a OptionGroup class.
Definition Options.cpp:759
static lldb::OptionValueSP Create(llvm::StringRef value_str, Status &error)
A command line option parsing protocol class.
Definition Options.h:58
A plug-in interface definition class for debugging a process.
Definition Process.h:368
uint32_t GetAddressByteSize() const
Definition Process.cpp:3949
virtual const RegisterSet * GetRegisterSet(size_t reg_set)=0
virtual const RegisterInfo * GetRegisterInfoAtIndex(size_t reg)=0
virtual bool WriteRegister(const RegisterInfo *reg_info, const RegisterValue &reg_value)=0
virtual size_t GetRegisterSetCount()=0
const RegisterInfo * GetRegisterInfoByName(llvm::StringRef reg_name, uint32_t start_idx=0)
virtual bool ReadRegister(const RegisterInfo *reg_info, RegisterValue &reg_value)=0
Status SetValueFromString(const RegisterInfo *reg_info, llvm::StringRef value_str)
uint64_t GetAsUInt64(uint64_t fail_value=UINT64_MAX, bool *success_ptr=nullptr) const
An error handling class.
Definition Status.h:118
A stream class that can stream formatted output to a file.
Definition Stream.h:28
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:63
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:204
void IndentMore(unsigned amount=2)
Increment the current indentation level.
Definition Stream.cpp:201
bool ResolveLoadAddress(lldb::addr_t load_addr, Address &so_addr, uint32_t stop_id=SectionLoadHistory::eStopIDNow, bool allow_section_end=false)
Definition Target.cpp:3505
#define UINT64_MAX
#define LLDB_OPT_SET_ALL
#define LLDB_INVALID_ADDRESS
#define UINT32_MAX
A class that represents a running process on the host machine.
std::vector< OptionArgElement > OptionElementVector
Definition Options.h:43
void DumpRegisterValue(const RegisterValue &reg_val, Stream &s, const RegisterInfo &reg_info, bool prefix_with_name, bool prefix_with_alt_name, lldb::Format format, uint32_t reg_name_right_align_at=0, ExecutionContextScope *exe_scope=nullptr, bool print_type=false, lldb::TargetSP target_sp=nullptr)
void DumpRegisterInfo(Stream &strm, RegisterContext &ctx, const RegisterInfo &info, uint32_t terminal_width)
std::shared_ptr< lldb_private::CommandObject > CommandObjectSP
@ eEncodingUint
unsigned integer
@ eEncodingSint
signed integer
@ eReturnStatusFailed
@ eReturnStatusSuccessFinishResult
@ eReturnStatusSuccessFinishNoResult
@ eArgTypeRegisterName
uint64_t addr_t
Definition lldb-types.h:80
std::shared_ptr< lldb_private::OptionValue > OptionValueSP
Used to build individual command argument lists.
Every register is described in detail including its name, alternate name (optional),...
lldb::Encoding encoding
Encoding of the register bits.
const char * alt_name
Alternate name of this register, can be NULL.
uint32_t * value_regs
List of registers (terminated with LLDB_INVALID_REGNUM).
uint32_t byte_size
Size in bytes of the register.
const char * name
Name of this register, can't be NULL.
Registers are grouped into register sets.
size_t num_registers
The number of registers in REGISTERS array below.
const uint32_t * registers
An array of register indicies in this set.
const char * name
Name of this register set.