diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2023-11-04 17:58:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-04 17:58:35 -0700 |
commit | e7c61479cecb3d4359936d323ae1c62c217a6e20 (patch) | |
tree | 476c79bd963a63950d5f1ce90881fd9c441f033e /lldb/source/Commands/CommandObjectTarget.cpp | |
parent | 9e90027d618687f3d744e21ad3eda5735a167503 (diff) | |
download | llvm-e7c61479cecb3d4359936d323ae1c62c217a6e20.zip llvm-e7c61479cecb3d4359936d323ae1c62c217a6e20.tar.gz llvm-e7c61479cecb3d4359936d323ae1c62c217a6e20.tar.bz2 |
[lldb] Move DownloadObjectAndSymbolFile to SymbolLocator plugin (#71267)
This builds on top of the work started in c3a302d to convert
LocateSymbolFile to a SymbolLocator plugin. This commit moves
DownloadObjectAndSymbolFile.
Diffstat (limited to 'lldb/source/Commands/CommandObjectTarget.cpp')
-rw-r--r-- | lldb/source/Commands/CommandObjectTarget.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lldb/source/Commands/CommandObjectTarget.cpp b/lldb/source/Commands/CommandObjectTarget.cpp index ca8484c..180210d 100644 --- a/lldb/source/Commands/CommandObjectTarget.cpp +++ b/lldb/source/Commands/CommandObjectTarget.cpp @@ -12,6 +12,7 @@ #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/Core/ValueObjectVariable.h" #include "lldb/DataFormatters/ValueObjectPrinter.h" @@ -2801,7 +2802,7 @@ protected: module_spec.GetSymbolFileSpec() = m_symbol_file.GetOptionValue().GetCurrentValue(); Status error; - if (Symbols::DownloadObjectAndSymbolFile(module_spec, error)) { + if (PluginManager::DownloadObjectAndSymbolFile(module_spec, error)) { ModuleSP module_sp( target->GetOrCreateModule(module_spec, true /* notify */)); if (module_sp) { @@ -4497,7 +4498,7 @@ protected: bool DownloadObjectAndSymbolFile(ModuleSpec &module_spec, CommandReturnObject &result, bool &flush) { Status error; - if (Symbols::DownloadObjectAndSymbolFile(module_spec, error)) { + if (PluginManager::DownloadObjectAndSymbolFile(module_spec, error)) { if (module_spec.GetSymbolFileSpec()) return AddModuleSymbols(m_exe_ctx.GetTargetPtr(), module_spec, flush, result); |