LLDB mainline
|
#include <CommandObjectDisassemble.h>
Public Member Functions | |
CommandOptions () | |
~CommandOptions () 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 |
llvm::ArrayRef< OptionDefinition > | GetDefinitions () override |
const char * | GetPluginName () |
const char * | GetFlavorString () |
const char * | GetCPUString () |
const char * | GetFeaturesString () |
Status | OptionParsingFinished (ExecutionContext *execution_context) override |
Public Member Functions inherited from lldb_private::Options | |
Options () | |
virtual | ~Options () |
void | BuildGetoptTable () |
void | BuildValidOptionSets () |
uint32_t | NumCommandOptions () |
Option * | GetLongOptions () |
Get the option definitions to use when parsing Args options. | |
void | OptionSeen (int short_option) |
bool | VerifyOptions (CommandReturnObject &result) |
bool | VerifyPartialOptions (CommandReturnObject &result) |
void | OutputFormattedUsageText (Stream &strm, const OptionDefinition &option_def, uint32_t output_max_columns) |
void | GenerateOptionUsage (Stream &strm, CommandObject &cmd, uint32_t screen_width) |
bool | SupportsLongOption (const char *long_option) |
virtual llvm::ArrayRef< OptionDefinition > | GetDefinitions () |
void | NotifyOptionParsingStarting (ExecutionContext *execution_context) |
llvm::Expected< Args > | Parse (const Args &args, ExecutionContext *execution_context, lldb::PlatformSP platform_sp, bool require_validation) |
Parse the provided arguments. | |
llvm::Expected< Args > | ParseAlias (const Args &args, OptionArgVector *option_arg_vector, std::string &input_line) |
OptionElementVector | ParseForCompletion (const Args &args, uint32_t cursor_index) |
Status | NotifyOptionParsingFinished (ExecutionContext *execution_context) |
virtual Status | SetOptionValue (uint32_t option_idx, llvm::StringRef option_arg, ExecutionContext *execution_context)=0 |
Set the value of an option. | |
bool | HandleOptionCompletion (lldb_private::CompletionRequest &request, OptionElementVector &option_map, CommandInterpreter &interpreter) |
Handles the generic bits of figuring out whether we are in an option, and if so completing it. | |
virtual void | HandleOptionArgumentCompletion (lldb_private::CompletionRequest &request, OptionElementVector &opt_element_vector, int opt_element_index, CommandInterpreter &interpreter) |
Handles the generic bits of figuring out whether we are in an option, and if so completing it. | |
Public Attributes | |
bool | show_mixed |
bool | show_bytes |
bool | show_control_flow_kind |
uint32_t | num_lines_context = 0 |
uint32_t | num_instructions = 0 |
bool | raw |
std::string | func_name |
bool | current_function = false |
lldb::addr_t | start_addr = 0 |
lldb::addr_t | end_addr = 0 |
bool | at_pc = false |
bool | frame_line = false |
std::string | plugin_name |
std::string | flavor_string |
std::string | cpu_string |
std::string | features_string |
ArchSpec | arch |
bool | some_location_specified = false |
lldb::addr_t | symbol_containing_addr = 0 |
bool | force = false |
Additional Inherited Members | |
Protected Types inherited from lldb_private::Options | |
typedef std::set< int > | OptionSet |
typedef std::vector< OptionSet > | OptionSetVector |
Protected Member Functions inherited from lldb_private::Options | |
OptionSetVector & | GetRequiredOptions () |
OptionSetVector & | GetOptionalOptions () |
bool | IsASubset (const OptionSet &set_a, const OptionSet &set_b) |
size_t | OptionsSetDiff (const OptionSet &set_a, const OptionSet &set_b, OptionSet &diffs) |
void | OptionsSetUnion (const OptionSet &set_a, const OptionSet &set_b, OptionSet &union_set) |
virtual void | OptionParsingStarting (ExecutionContext *execution_context)=0 |
virtual Status | OptionParsingFinished (ExecutionContext *execution_context) |
Protected Attributes inherited from lldb_private::Options | |
std::vector< Option > | m_getopt_table |
OptionSet | m_seen_options |
OptionSetVector | m_required_options |
OptionSetVector | m_optional_options |
Definition at line 22 of file CommandObjectDisassemble.h.
CommandObjectDisassemble::CommandOptions::CommandOptions | ( | ) |
Definition at line 34 of file CommandObjectDisassemble.cpp.
References OptionParsingStarting().
|
overridedefault |
|
inline |
Definition at line 45 of file CommandObjectDisassemble.h.
References cpu_string.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
|
overridevirtual |
Reimplemented from lldb_private::Options.
Definition at line 222 of file CommandObjectDisassemble.cpp.
|
inline |
Definition at line 51 of file CommandObjectDisassemble.h.
References features_string.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
|
inline |
Definition at line 39 of file CommandObjectDisassemble.h.
References flavor_string.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
|
inline |
Definition at line 35 of file CommandObjectDisassemble.h.
References plugin_name.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
|
overridevirtual |
Reimplemented from lldb_private::Options.
Definition at line 214 of file CommandObjectDisassemble.cpp.
|
overridevirtual |
Implements lldb_private::Options.
Definition at line 167 of file CommandObjectDisassemble.cpp.
References lldb_private::Broadcaster::Clear(), lldb_private::Target::GetArchitecture(), lldb_private::TargetProperties::GetDisassemblyCPU(), lldb_private::TargetProperties::GetDisassemblyFeatures(), lldb_private::TargetProperties::GetDisassemblyFlavor(), lldb_private::ExecutionContext::GetTargetPtr(), lldb_private::ArchSpec::GetTriple(), and LLDB_INVALID_ADDRESS.
Referenced by CommandOptions().
|
overridevirtual |
Set the value of an option.
[in] | option_idx | The index into the "struct option" array that was returned by Options::GetLongOptions(). |
[in] | option_arg | The argument value for the option that the user entered, or nullptr if there is no argument for the current option. |
[in] | execution_context | The execution context to use for evaluating the option. May be nullptr if the option is to be evaluated outside any particular context. |
Implements lldb_private::Options.
Definition at line 40 of file CommandObjectDisassemble.cpp.
References error(), lldb_private::Status::FromErrorStringWithFormat(), lldb_private::Platform::GetAugmentedArchSpec(), lldb_private::ExecutionContext::GetTargetSP(), LLDB_INVALID_ADDRESS, and lldb_private::OptionArgParser::ToAddress().
ArchSpec lldb_private::CommandObjectDisassemble::CommandOptions::arch |
Definition at line 75 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
bool lldb_private::CommandObjectDisassemble::CommandOptions::at_pc = false |
Definition at line 69 of file CommandObjectDisassemble.h.
std::string lldb_private::CommandObjectDisassemble::CommandOptions::cpu_string |
Definition at line 73 of file CommandObjectDisassemble.h.
Referenced by GetCPUString().
bool lldb_private::CommandObjectDisassemble::CommandOptions::current_function = false |
Definition at line 66 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::GetRangesForSelectedMode().
lldb::addr_t lldb_private::CommandObjectDisassemble::CommandOptions::end_addr = 0 |
Definition at line 68 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::GetStartEndAddressRanges().
std::string lldb_private::CommandObjectDisassemble::CommandOptions::features_string |
Definition at line 74 of file CommandObjectDisassemble.h.
Referenced by GetFeaturesString().
std::string lldb_private::CommandObjectDisassemble::CommandOptions::flavor_string |
Definition at line 72 of file CommandObjectDisassemble.h.
Referenced by GetFlavorString().
bool lldb_private::CommandObjectDisassemble::CommandOptions::force = false |
Definition at line 80 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::CheckRangeSize().
bool lldb_private::CommandObjectDisassemble::CommandOptions::frame_line = false |
Definition at line 70 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::GetRangesForSelectedMode().
std::string lldb_private::CommandObjectDisassemble::CommandOptions::func_name |
Definition at line 65 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::GetNameRanges(), and lldb_private::CommandObjectDisassemble::GetRangesForSelectedMode().
uint32_t lldb_private::CommandObjectDisassemble::CommandOptions::num_instructions = 0 |
Definition at line 63 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::CheckRangeSize(), lldb_private::CommandObjectDisassemble::DoExecute(), and lldb_private::CommandObjectDisassemble::GetPCRanges().
uint32_t lldb_private::CommandObjectDisassemble::CommandOptions::num_lines_context = 0 |
Definition at line 62 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
std::string lldb_private::CommandObjectDisassemble::CommandOptions::plugin_name |
Definition at line 71 of file CommandObjectDisassemble.h.
Referenced by GetPluginName().
bool lldb_private::CommandObjectDisassemble::CommandOptions::raw |
Definition at line 64 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
bool lldb_private::CommandObjectDisassemble::CommandOptions::show_bytes |
Definition at line 60 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
bool lldb_private::CommandObjectDisassemble::CommandOptions::show_control_flow_kind |
Definition at line 61 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute().
bool lldb_private::CommandObjectDisassemble::CommandOptions::show_mixed |
Definition at line 59 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::DoExecute(), and lldb_private::CommandObjectDisassemble::GetCurrentLineRanges().
bool lldb_private::CommandObjectDisassemble::CommandOptions::some_location_specified = false |
Definition at line 76 of file CommandObjectDisassemble.h.
lldb::addr_t lldb_private::CommandObjectDisassemble::CommandOptions::start_addr = 0 |
Definition at line 67 of file CommandObjectDisassemble.h.
Referenced by lldb_private::CommandObjectDisassemble::GetRangesForSelectedMode(), and lldb_private::CommandObjectDisassemble::GetStartEndAddressRanges().
lldb::addr_t lldb_private::CommandObjectDisassemble::CommandOptions::symbol_containing_addr = 0 |