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. If this "
104 "is set, register fields will not be displayed."}}) {
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_flags, 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_flags,
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_flags=*/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 flags afterwards.
271 bool print_flags =
272 !m_format_options.GetFormatValue().OptionWasSet();
273 if (!DumpRegister(m_exe_ctx, strm, *reg_ctx, *reg_info, print_flags,
274 reg_name_right_align_at))
275 strm.Printf("%-12s = error: unavailable\n", reg_info->name);
276 } else {
277 result.AppendErrorWithFormat("Invalid register name '%s'",
278 arg_str.str().c_str());
279 }
280 }
281 strm.IndentLess();
282 }
283 }
284 if (result.GetStatus() != eReturnStatusFailed)
286 }
287
289 public:
291 : set_indexes(OptionValue::ConvertTypeToMask(OptionValue::eTypeUInt64)),
292 dump_all_sets(false, false), // Initial and default values are false
293 alternate_name(false, false) {}
294
295 ~CommandOptions() override = default;
296
297 llvm::ArrayRef<OptionDefinition> GetDefinitions() override {
298 return llvm::ArrayRef(g_register_read_options);
299 }
300
301 void OptionParsingStarting(ExecutionContext *execution_context) override {
302 set_indexes.Clear();
303 dump_all_sets.Clear();
304 alternate_name.Clear();
305 }
306
307 Status SetOptionValue(uint32_t option_idx, llvm::StringRef option_value,
308 ExecutionContext *execution_context) override {
310 const int short_option = GetDefinitions()[option_idx].short_option;
311 switch (short_option) {
312 case 's': {
313 OptionValueSP value_sp(OptionValueUInt64::Create(option_value, error));
314 if (value_sp)
315 set_indexes.AppendValue(value_sp);
316 } break;
317
318 case 'a':
319 // When we don't use OptionValue::SetValueFromCString(const char *) to
320 // set an option value, it won't be marked as being set in the options
321 // so we make a call to let users know the value was set via option
322 dump_all_sets.SetCurrentValue(true);
323 dump_all_sets.SetOptionWasSet();
324 break;
325
326 case 'A':
327 // When we don't use OptionValue::SetValueFromCString(const char *) to
328 // set an option value, it won't be marked as being set in the options
329 // so we make a call to let users know the value was set via option
330 alternate_name.SetCurrentValue(true);
331 dump_all_sets.SetOptionWasSet();
332 break;
333
334 default:
335 llvm_unreachable("Unimplemented option");
336 }
337 return error;
338 }
339
340 // Instance variables to hold the values for command options.
344 };
345
349};
350
351// "register write"
353public:
355 : CommandObjectParsed(interpreter, "register write",
356 "Modify a single register value.", nullptr,
357 eCommandRequiresFrame | eCommandRequiresRegContext |
358 eCommandProcessMustBeLaunched |
359 eCommandProcessMustBePaused) {
362 CommandArgumentData register_arg;
363 CommandArgumentData value_arg;
364
365 // Define the first (and only) variant of this arg.
366 register_arg.arg_type = eArgTypeRegisterName;
367 register_arg.arg_repetition = eArgRepeatPlain;
368
369 // There is only one variant this argument could be; put it into the
370 // argument entry.
371 arg1.push_back(register_arg);
372
373 // Define the first (and only) variant of this arg.
374 value_arg.arg_type = eArgTypeValue;
376
377 // There is only one variant this argument could be; put it into the
378 // argument entry.
379 arg2.push_back(value_arg);
380
381 // Push the data for the first argument into the m_arguments vector.
382 m_arguments.push_back(arg1);
383 m_arguments.push_back(arg2);
384 }
385
386 ~CommandObjectRegisterWrite() override = default;
387
388 void
390 OptionElementVector &opt_element_vector) override {
391 if (!m_exe_ctx.HasProcessScope() || request.GetCursorIndex() != 0)
392 return;
393
396 }
397
398protected:
399 void DoExecute(Args &command, CommandReturnObject &result) override {
400 DataExtractor reg_data;
401 RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext();
402
403 if (command.GetArgumentCount() != 2) {
404 result.AppendError(
405 "register write takes exactly 2 arguments: <reg-name> <value>");
406 } else {
407 auto reg_name = command[0].ref();
408 auto value_str = command[1].ref();
409
410 // in most LLDB commands we accept $rbx as the name for register RBX -
411 // and here we would reject it and non-existant. we should be more
412 // consistent towards the user and allow them to say reg write $rbx -
413 // internally, however, we should be strict and not allow ourselves to
414 // call our registers $rbx in our own API
415 reg_name.consume_front("$");
416
417 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoByName(reg_name);
418
419 if (reg_info) {
420 RegisterValue reg_value;
421
422 Status error(reg_value.SetValueFromString(reg_info, value_str));
423 if (error.Success()) {
424 if (reg_ctx->WriteRegister(reg_info, reg_value)) {
425 // Toss all frames and anything else in the thread after a register
426 // has been written.
427 m_exe_ctx.GetThreadRef().Flush();
429 return;
430 }
431 }
432 if (error.AsCString()) {
434 "Failed to write register '%s' with value '%s': %s",
435 reg_name.str().c_str(), value_str.str().c_str(),
436 error.AsCString());
437 } else {
439 "Failed to write register '%s' with value '%s'",
440 reg_name.str().c_str(), value_str.str().c_str());
441 }
442 } else {
443 result.AppendErrorWithFormat("Register not found for '%s'",
444 reg_name.str().c_str());
445 }
446 }
447 }
448};
449
450// "register info"
452public:
454 : CommandObjectParsed(interpreter, "register info",
455 "View information about a register.", nullptr,
456 eCommandRequiresFrame | eCommandRequiresRegContext |
457 eCommandProcessMustBeLaunched |
458 eCommandProcessMustBePaused) {
459 SetHelpLong(R"(
460Name The name lldb uses for the register, optionally with an alias.
461Size The size of the register in bytes and again in bits.
462Invalidates (*) The registers that would be changed if you wrote this
463 register. For example, writing to a narrower alias of a wider
464 register would change the value of the wider register.
465Read from (*) The registers that the value of this register is constructed
466 from. For example, a narrower alias of a wider register will be
467 read from the wider register.
468In sets (*) The register sets that contain this register. For example the
469 PC will be in the "General Purpose Register" set.
470Fields (*) A table of the names and bit positions of the values contained
471 in this register.
472
473Fields marked with (*) may not always be present. Some information may be
474different for the same register when connected to different debug servers.)");
477 }
478
479 ~CommandObjectRegisterInfo() override = default;
480
481 void
483 OptionElementVector &opt_element_vector) override {
484 if (!m_exe_ctx.HasProcessScope() || request.GetCursorIndex() != 0)
485 return;
486 CommandObject::HandleArgumentCompletion(request, opt_element_vector);
487 }
488
489protected:
490 void DoExecute(Args &command, CommandReturnObject &result) override {
491 if (command.GetArgumentCount() != 1) {
492 result.AppendError("register info takes exactly 1 argument: <reg-name>");
493 return;
494 }
495
496 llvm::StringRef reg_name = command[0].ref();
497 RegisterContext *reg_ctx = m_exe_ctx.GetRegisterContext();
498 const RegisterInfo *reg_info = reg_ctx->GetRegisterInfoByName(reg_name);
499 if (reg_info) {
501 result.GetOutputStream(), *reg_ctx, *reg_info,
502 GetCommandInterpreter().GetDebugger().GetTerminalWidth());
504 } else
505 result.AppendErrorWithFormat("No register found with name '%s'",
506 reg_name.str().c_str());
507 }
508};
509
510// CommandObjectRegister constructor
512 : CommandObjectMultiword(interpreter, "register",
513 "Commands to access registers for the current "
514 "thread and stack frame.",
515 "register [read|write|info] ...") {
516 LoadSubCommand("read",
518 LoadSubCommand("write",
520 LoadSubCommand("info",
522}
523
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 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
bool DumpRegister(const ExecutionContext &exe_ctx, Stream &strm, RegisterContext &reg_ctx, const RegisterInfo &reg_info, bool print_flags, size_t reg_name_right_align_at)
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:396
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:359
uint32_t GetAddressByteSize() const
Definition Process.cpp:3930
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:3483
#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 DumpRegisterInfo(Stream &strm, RegisterContext &ctx, const RegisterInfo &info, uint32_t terminal_width)
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_flags=false, lldb::TargetSP target_sp=nullptr)
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.