9#ifndef LLDB_TARGET_TARGETLIST_H
10#define LLDB_TARGET_TARGETLIST_H
88 llvm::StringRef triple_str,
91 lldb::TargetSP &target_sp);
100 lldb::PlatformSP &platform_sp, lldb::TargetSP &target_sp);
147 const ArchSpec *exe_arch_ptr =
nullptr)
const;
198 Debugger &debugger, llvm::StringRef user_exe_path,
203 llvm::StringRef user_exe_path,
206 lldb::PlatformSP &platform_sp,
207 lldb::TargetSP &target_sp);
An architecture specification class.
An event broadcasting class.
A uniqued constant string class.
A class to manage flag bits.
A plug-in interface definition class for debugging a process.
void SetSelectedTargetInternal(uint32_t index)
LockingAdaptedIterable< collection, lldb::TargetSP, vector_adapter, std::recursive_mutex > TargetIterable
ConstString & GetBroadcasterClass() const override
This needs to be filled in if you are going to register the broadcaster with the broadcaster manager ...
lldb::TargetSP FindTargetWithProcessID(lldb::pid_t pid) const
Find the target that contains a process with process ID pid.
lldb::TargetSP GetTargetAtIndex(uint32_t index) const
Status CreateTarget(Debugger &debugger, llvm::StringRef user_exe_path, llvm::StringRef triple_str, LoadDependentFiles get_dependent_modules, const OptionGroupPlatform *platform_options, lldb::TargetSP &target_sp)
Create a new Target.
std::vector< lldb::TargetSP > collection
TargetList(const TargetList &)=delete
std::recursive_mutex m_target_list_mutex
uint32_t GetIndexOfTarget(lldb::TargetSP target_sp) const
lldb::TargetSP GetTargetSP(Target *target) const
void SetSelectedTarget(uint32_t index)
uint32_t SendAsyncInterrupt(lldb::pid_t pid=LLDB_INVALID_PROCESS_ID)
Send an async interrupt to one or all processes.
bool DeleteTarget(lldb::TargetSP &target_sp)
Delete a Target object from the list.
lldb::TargetSP FindTargetWithProcess(lldb_private::Process *process) const
static Status CreateTargetInternal(Debugger &debugger, llvm::StringRef user_exe_path, llvm::StringRef triple_str, LoadDependentFiles load_dependent_files, const OptionGroupPlatform *platform_options, lldb::TargetSP &target_sp)
int GetNumTargets() const
lldb::TargetSP GetSelectedTarget()
void AddTargetInternal(lldb::TargetSP target_sp, bool do_select)
Status CreateTarget(Debugger &debugger, llvm::StringRef user_exe_path, const ArchSpec &arch, LoadDependentFiles get_dependent_modules, lldb::PlatformSP &platform_sp, lldb::TargetSP &target_sp)
Create a new Target.
static ConstString & GetStaticBroadcasterClass()
uint32_t SignalIfRunning(lldb::pid_t pid, int signo)
lldb::TargetSP FindTargetWithExecutableAndArchitecture(const FileSpec &exe_file_spec, const ArchSpec *exe_arch_ptr=nullptr) const
Find the target that contains has an executable whose path matches exe_file_spec, and whose architect...
const TargetList & operator=(const TargetList &)=delete
uint32_t m_selected_target_idx
void SetSelectedTarget(const lldb::TargetSP &target)
#define LLDB_INVALID_PROCESS_ID
A class that represents a running process on the host machine.
E vector_adapter(I &iter)