1 //===-- SymbolLocator.h -----------------------------------------*- C++ -*-===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef LLDB_SYMBOL_SYMBOLLOCATOR_H 10 #define LLDB_SYMBOL_SYMBOLLOCATOR_H 11 12 #include "lldb/Core/PluginInterface.h" 13 #include "lldb/Utility/UUID.h" 14 15 namespace lldb_private { 16 17 class SymbolLocator : public PluginInterface { 18 public: 19 SymbolLocator() = default; 20 21 /// Locate the symbol file for the given UUID on a background thread. This 22 /// function returns immediately. Under the hood it uses the debugger's 23 /// thread pool to call DownloadObjectAndSymbolFile. If a symbol file is 24 /// found, this will notify all target which contain the module with the 25 /// given UUID. 26 static void DownloadSymbolFileAsync(const UUID &uuid); 27 }; 28 29 } // namespace lldb_private 30 31 #endif // LLDB_SYMBOL_SYMBOLFILELOCATOR_H 32