17 const char *plugin_name) {
23 if (create_callback) {
24 std::unique_ptr<OperatingSystem> instance_up(
25 create_callback(process,
true));
27 return instance_up.release();
30 for (uint32_t idx = 0;
35 std::unique_ptr<OperatingSystem> instance_up(
36 create_callback(process,
false));
38 return instance_up.release();
49 return thread_sp->IsOperatingSystemPluginThread();
A plug-in interface definition class for halted OS helpers.
static OperatingSystem * FindPlugin(Process *process, const char *plugin_name)
Find a halted OS plugin for a given process.
OperatingSystem(Process *process)
virtual bool IsOperatingSystemPluginThread(const lldb::ThreadSP &thread_sp)
static OperatingSystemCreateInstance GetOperatingSystemCreateCallbackAtIndex(uint32_t idx)
static OperatingSystemCreateInstance GetOperatingSystemCreateCallbackForPluginName(llvm::StringRef name)
A plug-in interface definition class for debugging a process.
A class that represents a running process on the host machine.
OperatingSystem *(* OperatingSystemCreateInstance)(Process *process, bool force)
std::shared_ptr< lldb_private::Thread > ThreadSP