LLDB  mainline
Classes | Macros | Functions | Variables
CommandObjectTarget.cpp File Reference
#include "CommandObjectTarget.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/IOHandler.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Core/Section.h"
#include "lldb/Core/ValueObjectVariable.h"
#include "lldb/DataFormatters/ValueObjectPrinter.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandReturnObject.h"
#include "lldb/Interpreter/OptionArgParser.h"
#include "lldb/Interpreter/OptionGroupArchitecture.h"
#include "lldb/Interpreter/OptionGroupBoolean.h"
#include "lldb/Interpreter/OptionGroupFile.h"
#include "lldb/Interpreter/OptionGroupFormat.h"
#include "lldb/Interpreter/OptionGroupString.h"
#include "lldb/Interpreter/OptionGroupUInt64.h"
#include "lldb/Interpreter/OptionGroupUUID.h"
#include "lldb/Interpreter/OptionGroupValueObjectDisplay.h"
#include "lldb/Interpreter/OptionGroupVariable.h"
#include "lldb/Interpreter/Options.h"
#include "lldb/Symbol/CompileUnit.h"
#include "lldb/Symbol/FuncUnwinders.h"
#include "lldb/Symbol/LineTable.h"
#include "lldb/Symbol/LocateSymbolFile.h"
#include "lldb/Symbol/ObjectFile.h"
#include "lldb/Symbol/SymbolFile.h"
#include "lldb/Symbol/UnwindPlan.h"
#include "lldb/Symbol/VariableList.h"
#include "lldb/Target/ABI.h"
#include "lldb/Target/Process.h"
#include "lldb/Target/RegisterContext.h"
#include "lldb/Target/SectionLoadList.h"
#include "lldb/Target/StackFrame.h"
#include "lldb/Target/Thread.h"
#include "lldb/Target/ThreadSpec.h"
#include "lldb/Utility/Args.h"
#include "lldb/Utility/State.h"
#include "lldb/Utility/Timer.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FormatAdapters.h"
#include "CommandOptions.inc"
Include dependency graph for CommandObjectTarget.cpp:

Go to the source code of this file.

Classes

class  OptionGroupDependents
 
class  CommandObjectTargetCreate
 
class  CommandObjectTargetList
 
class  CommandObjectTargetSelect
 
class  CommandObjectTargetDelete
 
class  CommandObjectTargetShowLaunchEnvironment
 
class  CommandObjectTargetVariable
 
class  CommandObjectTargetModulesSearchPathsAdd
 
class  CommandObjectTargetModulesSearchPathsClear
 
class  CommandObjectTargetModulesSearchPathsInsert
 
class  CommandObjectTargetModulesSearchPathsList
 
class  CommandObjectTargetModulesSearchPathsQuery
 
class  CommandObjectTargetModulesModuleAutoComplete
 
class  CommandObjectTargetModulesSourceFileAutoComplete
 
class  CommandObjectTargetModulesDumpObjfile
 
class  CommandObjectTargetModulesDumpSymtab
 
class  CommandObjectTargetModulesDumpSymtab::CommandOptions
 
class  CommandObjectTargetModulesDumpSections
 
class  CommandObjectTargetModulesDumpClangAST
 
class  CommandObjectTargetModulesDumpSymfile
 
class  CommandObjectTargetModulesDumpLineTable
 
class  CommandObjectTargetModulesDumpLineTable::CommandOptions
 
class  CommandObjectTargetModulesDump
 
class  CommandObjectTargetModulesAdd
 
class  CommandObjectTargetModulesLoad
 
class  CommandObjectTargetModulesList
 
class  CommandObjectTargetModulesList::CommandOptions
 
class  CommandObjectTargetModulesShowUnwind
 
class  CommandObjectTargetModulesShowUnwind::CommandOptions
 
class  CommandObjectTargetModulesLookup
 
class  CommandObjectTargetModulesLookup::CommandOptions
 
class  CommandObjectTargetModulesImageSearchPaths
 
class  CommandObjectTargetModules
 
class  CommandObjectTargetSymbolsAdd
 
class  CommandObjectTargetSymbols
 
class  CommandObjectTargetStopHookAdd
 
class  CommandObjectTargetStopHookAdd::CommandOptions
 
class  CommandObjectTargetStopHookDelete
 
class  CommandObjectTargetStopHookEnableDisable
 
class  CommandObjectTargetStopHookList
 
class  CommandObjectMultiwordTargetStopHooks
 

Macros

#define LLDB_OPTIONS_target_dependents
 
#define LLDB_OPTIONS_target_modules_dump_symtab
 
#define LLDB_OPTIONS_target_modules_dump
 
#define LLDB_OPTIONS_target_modules_list
 
#define LLDB_OPTIONS_target_modules_show_unwind
 
#define LLDB_OPTIONS_target_modules_lookup
 
#define LLDB_OPTIONS_target_stop_hook_add
 

Functions

static void DumpTargetInfo (uint32_t target_idx, Target *target, const char *prefix_cstr, bool show_stopped_process_status, Stream &strm)
 
static uint32_t DumpTargetList (TargetList &target_list, bool show_stopped_process_status, Stream &strm)
 
static void DumpModuleArchitecture (Stream &strm, Module *module, bool full_triple, uint32_t width)
 
static void DumpModuleUUID (Stream &strm, Module *module)
 
static uint32_t DumpCompileUnitLineTable (CommandInterpreter &interpreter, Stream &strm, Module *module, const FileSpec &file_spec, lldb::DescriptionLevel desc_level)
 
static void DumpFullpath (Stream &strm, const FileSpec *file_spec_ptr, uint32_t width)
 
static void DumpDirectory (Stream &strm, const FileSpec *file_spec_ptr, uint32_t width)
 
static void DumpBasename (Stream &strm, const FileSpec *file_spec_ptr, uint32_t width)
 
static size_t DumpModuleObjfileHeaders (Stream &strm, ModuleList &module_list)
 
static void DumpModuleSymtab (CommandInterpreter &interpreter, Stream &strm, Module *module, SortOrder sort_order, Mangled::NamePreference name_preference)
 
static void DumpModuleSections (CommandInterpreter &interpreter, Stream &strm, Module *module)
 
static bool DumpModuleSymbolFile (Stream &strm, Module *module)
 
static void DumpAddress (ExecutionContextScope *exe_scope, const Address &so_addr, bool verbose, Stream &strm)
 
static bool LookupAddressInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, uint32_t resolve_mask, lldb::addr_t raw_addr, lldb::addr_t offset, bool verbose)
 
static uint32_t LookupSymbolInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name, bool name_is_regex, bool verbose)
 
static void DumpSymbolContextList (ExecutionContextScope *exe_scope, Stream &strm, SymbolContextList &sc_list, bool verbose)
 
static size_t LookupFunctionInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name, bool name_is_regex, bool include_inlines, bool include_symbols, bool verbose)
 
static size_t LookupTypeInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name_cstr, bool name_is_regex)
 
static size_t LookupTypeHere (CommandInterpreter &interpreter, Stream &strm, Module &module, const char *name_cstr, bool name_is_regex)
 
static uint32_t LookupFileAndLineInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const FileSpec &file_spec, uint32_t line, bool check_inlines, bool verbose)
 
static size_t FindModulesByName (Target *target, const char *module_name, ModuleList &module_list, bool check_global_list)
 

Variables

static constexpr OptionEnumValueElement g_dependents_enumaration []
 
static constexpr OptionEnumValueElement g_sort_option_enumeration []
 

Macro Definition Documentation

◆ LLDB_OPTIONS_target_dependents

#define LLDB_OPTIONS_target_dependents

Definition at line 153 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_dump

#define LLDB_OPTIONS_target_modules_dump

Definition at line 2325 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_dump_symtab

#define LLDB_OPTIONS_target_modules_dump_symtab

Definition at line 1945 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_list

#define LLDB_OPTIONS_target_modules_list

Definition at line 2900 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_lookup

#define LLDB_OPTIONS_target_modules_lookup

Definition at line 3565 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_show_unwind

#define LLDB_OPTIONS_target_modules_show_unwind

Definition at line 3242 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_stop_hook_add

#define LLDB_OPTIONS_target_stop_hook_add

Definition at line 4402 of file CommandObjectTarget.cpp.

Function Documentation

◆ DumpAddress()

static void DumpAddress ( ExecutionContextScope exe_scope,
const Address so_addr,
bool  verbose,
Stream strm 
)
static

◆ DumpBasename()

static void DumpBasename ( Stream strm,
const FileSpec file_spec_ptr,
uint32_t  width 
)
static

◆ DumpCompileUnitLineTable()

static uint32_t DumpCompileUnitLineTable ( CommandInterpreter interpreter,
Stream strm,
Module module,
const FileSpec file_spec,
lldb::DescriptionLevel  desc_level 
)
static

◆ DumpDirectory()

static void DumpDirectory ( Stream strm,
const FileSpec file_spec_ptr,
uint32_t  width 
)
static

◆ DumpFullpath()

static void DumpFullpath ( Stream strm,
const FileSpec file_spec_ptr,
uint32_t  width 
)
static

◆ DumpModuleArchitecture()

static void DumpModuleArchitecture ( Stream strm,
Module module,
bool  full_triple,
uint32_t  width 
)
static

◆ DumpModuleObjfileHeaders()

static size_t DumpModuleObjfileHeaders ( Stream strm,
ModuleList module_list 
)
static

◆ DumpModuleSections()

static void DumpModuleSections ( CommandInterpreter interpreter,
Stream strm,
Module module 
)
static

◆ DumpModuleSymbolFile()

static bool DumpModuleSymbolFile ( Stream strm,
Module module 
)
static

◆ DumpModuleSymtab()

static void DumpModuleSymtab ( CommandInterpreter interpreter,
Stream strm,
Module module,
SortOrder  sort_order,
Mangled::NamePreference  name_preference 
)
static

◆ DumpModuleUUID()

static void DumpModuleUUID ( Stream strm,
Module module 
)
static

◆ DumpSymbolContextList()

static void DumpSymbolContextList ( ExecutionContextScope exe_scope,
Stream strm,
SymbolContextList sc_list,
bool  verbose 
)
static

◆ DumpTargetInfo()

static void DumpTargetInfo ( uint32_t  target_idx,
Target target,
const char *  prefix_cstr,
bool  show_stopped_process_status,
Stream strm 
)
static

◆ DumpTargetList()

static uint32_t DumpTargetList ( TargetList target_list,
bool  show_stopped_process_status,
Stream strm 
)
static

◆ FindModulesByName()

static size_t FindModulesByName ( Target target,
const char *  module_name,
ModuleList module_list,
bool  check_global_list 
)
static

◆ LookupAddressInModule()

static bool LookupAddressInModule ( CommandInterpreter interpreter,
Stream strm,
Module module,
uint32_t  resolve_mask,
lldb::addr_t  raw_addr,
lldb::addr_t  offset,
bool  verbose 
)
static

◆ LookupFileAndLineInModule()

static uint32_t LookupFileAndLineInModule ( CommandInterpreter interpreter,
Stream strm,
Module module,
const FileSpec file_spec,
uint32_t  line,
bool  check_inlines,
bool  verbose 
)
static

◆ LookupFunctionInModule()

static size_t LookupFunctionInModule ( CommandInterpreter interpreter,
Stream strm,
Module module,
const char *  name,
bool  name_is_regex,
bool  include_inlines,
bool  include_symbols,
bool  verbose 
)
static

◆ LookupSymbolInModule()

static uint32_t LookupSymbolInModule ( CommandInterpreter interpreter,
Stream strm,
Module module,
const char *  name,
bool  name_is_regex,
bool  verbose 
)
static

◆ LookupTypeHere()

static size_t LookupTypeHere ( CommandInterpreter interpreter,
Stream strm,
Module module,
const char *  name_cstr,
bool  name_is_regex 
)
static

◆ LookupTypeInModule()

static size_t LookupTypeInModule ( CommandInterpreter interpreter,
Stream strm,
Module module,
const char *  name_cstr,
bool  name_is_regex 
)
static

Variable Documentation

◆ g_dependents_enumaration

constexpr OptionEnumValueElement g_dependents_enumaration[]
static
Initial value:
= {
{
"default",
"Only load dependents when the target is an executable.",
},
{
"true",
"Don't load dependents, even if the target is an executable.",
},
{
"false",
"Load dependents, even if the target is not an executable.",
},
}

Definition at line 135 of file CommandObjectTarget.cpp.

◆ g_sort_option_enumeration

constexpr OptionEnumValueElement g_sort_option_enumeration[]
static
Initial value:
= {
{
"none",
"No sorting, use the original symbol table order.",
},
{
"address",
"Sort output by symbol address.",
},
{
"name",
"Sort output by symbol name.",
},
}

Definition at line 1927 of file CommandObjectTarget.cpp.