LLDB mainline
CommandObjectTarget.cpp File Reference
#include "CommandObjectTarget.h"
#include "lldb/Core/Address.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/IOHandler.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Core/PluginManager.h"
#include "lldb/Core/Section.h"
#include "lldb/DataFormatters/ValueObjectPrinter.h"
#include "lldb/Host/OptionParser.h"
#include "lldb/Interpreter/CommandInterpreter.h"
#include "lldb/Interpreter/CommandOptionArgumentTable.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/OptionGroupPlatform.h"
#include "lldb/Interpreter/OptionGroupPythonClassWithDict.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/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/ConstString.h"
#include "lldb/Utility/FileSpec.h"
#include "lldb/Utility/LLDBLog.h"
#include "lldb/Utility/State.h"
#include "lldb/Utility/Stream.h"
#include "lldb/Utility/StructuredData.h"
#include "lldb/Utility/Timer.h"
#include "lldb/ValueObject/ValueObjectVariable.h"
#include "lldb/lldb-enumerations.h"
#include "lldb/lldb-forward.h"
#include "lldb/lldb-private-enumerations.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/CompilerInvocation.h"
#include "clang/Frontend/FrontendActions.h"
#include "clang/Serialization/ObjectFilePCHContainerReader.h"
#include "llvm/ADT/ScopeExit.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/FileSystem.h"
#include "llvm/Support/FormatAdapters.h"
#include "CommandOptions.inc"

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  CommandObjectTargetModulesDumpClangPCMInfo
class  CommandObjectTargetModulesDumpClangAST
class  CommandObjectTargetModulesDumpSymfile
class  CommandObjectTargetModulesDumpLineTable
class  CommandObjectTargetModulesDumpLineTable::CommandOptions
class  CommandObjectTargetModulesDumpSeparateDebugInfoFiles
class  CommandObjectTargetModulesDumpSeparateDebugInfoFiles::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
class  CommandObjectTargetDumpTypesystem
 Dumps the TypeSystem of the selected Target. More...
class  CommandObjectTargetDumpSectionLoadList
 Dumps the SectionLoadList of the selected Target. More...
class  CommandObjectTargetDump
 Multi-word command for 'target dump'. More...

Macros

#define LLDB_OPTIONS_target_dependents
#define LLDB_OPTIONS_target_modules_dump_symtab
#define LLDB_OPTIONS_target_modules_dump
#define LLDB_OPTIONS_target_modules_dump_separate_debug_info
#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 bool GetSeparateDebugInfoList (StructuredData::Array &list, Module *module, bool errors_only, bool load_all_debug_info)
static void DumpDwoFilesTable (Stream &strm, StructuredData::Array &dwo_listings)
static void DumpOsoFilesTable (Stream &strm, StructuredData::Array &oso_listings)
static void DumpAddress (ExecutionContextScope *exe_scope, const Address &so_addr, bool verbose, bool all_ranges, Stream &strm, std::optional< Stream::HighlightSettings > settings=std::nullopt)
static bool LookupAddressInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, uint32_t resolve_mask, lldb::addr_t raw_addr, lldb::addr_t offset, bool verbose, bool all_ranges)
static uint32_t LookupSymbolInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name, bool name_is_regex, bool verbose, bool all_ranges)
static void DumpSymbolContextList (ExecutionContextScope *exe_scope, Stream &strm, const SymbolContextList &sc_list, bool verbose, bool all_ranges, std::optional< Stream::HighlightSettings > settings=std::nullopt)
static size_t LookupFunctionInModule (CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name, bool name_is_regex, const ModuleFunctionSearchOptions &options, bool verbose, bool all_ranges)
static size_t LookupTypeInModule (Target *target, CommandInterpreter &interpreter, Stream &strm, Module *module, const char *name_cstr, bool name_is_regex)
static size_t LookupTypeHere (Target *target, 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, bool all_ranges)
static size_t FindModulesByName (Target *target, const char *module_name, ModuleList &module_list, bool check_global_list)

Macro Definition Documentation

◆ LLDB_OPTIONS_target_dependents

#define LLDB_OPTIONS_target_dependents

Definition at line 157 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_dump

#define LLDB_OPTIONS_target_modules_dump

Definition at line 2399 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_dump_separate_debug_info

#define LLDB_OPTIONS_target_modules_dump_separate_debug_info

Definition at line 2499 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_dump_symtab

#define LLDB_OPTIONS_target_modules_dump_symtab

Definition at line 1950 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_list

#define LLDB_OPTIONS_target_modules_list

Definition at line 3142 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_lookup

#define LLDB_OPTIONS_target_modules_lookup

Definition at line 3806 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_modules_show_unwind

#define LLDB_OPTIONS_target_modules_show_unwind

Definition at line 3464 of file CommandObjectTarget.cpp.

◆ LLDB_OPTIONS_target_stop_hook_add

#define LLDB_OPTIONS_target_stop_hook_add

Definition at line 4716 of file CommandObjectTarget.cpp.

Function Documentation

◆ DumpAddress()

◆ DumpBasename()

◆ DumpCompileUnitLineTable()

◆ DumpDirectory()

◆ DumpDwoFilesTable()

◆ DumpFullpath()

◆ DumpModuleArchitecture()

◆ DumpModuleObjfileHeaders()

◆ DumpModuleSections()

◆ DumpModuleSymbolFile()

bool DumpModuleSymbolFile ( Stream & strm,
Module * module )
static

◆ DumpModuleSymtab()

◆ DumpModuleUUID()

void DumpModuleUUID ( Stream & strm,
Module * module )
static

◆ DumpOsoFilesTable()

◆ DumpSymbolContextList()

void DumpSymbolContextList ( ExecutionContextScope * exe_scope,
Stream & strm,
const SymbolContextList & sc_list,
bool verbose,
bool all_ranges,
std::optional< Stream::HighlightSettings > settings = std::nullopt )
static

◆ DumpTargetInfo()

◆ DumpTargetList()

◆ FindModulesByName()

◆ GetSeparateDebugInfoList()

bool GetSeparateDebugInfoList ( StructuredData::Array & list,
Module * module,
bool errors_only,
bool load_all_debug_info )
static

◆ LookupAddressInModule()

◆ LookupFileAndLineInModule()

◆ LookupFunctionInModule()

◆ LookupSymbolInModule()

◆ LookupTypeHere()

◆ LookupTypeInModule()