brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 0ea79fa Raw
55 lines · c
1//===-- SymbolLocatorDebuginfod.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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLDB_SOURCE_PLUGINS_SYMBOLLOCATOR_DEBUGINFOD_SYMBOLLOCATORDEBUGINFOD_H10#define LLDB_SOURCE_PLUGINS_SYMBOLLOCATOR_DEBUGINFOD_SYMBOLLOCATORDEBUGINFOD_H11 12#include "lldb/Core/Debugger.h"13#include "lldb/Symbol/SymbolLocator.h"14#include "lldb/lldb-private.h"15 16namespace lldb_private {17 18class SymbolLocatorDebuginfod : public SymbolLocator {19public:20  SymbolLocatorDebuginfod();21 22  static void Initialize();23  static void Terminate();24  static void DebuggerInitialize(Debugger &debugger);25 26  static llvm::StringRef GetPluginNameStatic() { return "debuginfod"; }27  static llvm::StringRef GetPluginDescriptionStatic();28 29  static lldb_private::SymbolLocator *CreateInstance();30 31  /// PluginInterface protocol.32  /// \{33  llvm::StringRef GetPluginName() override { return GetPluginNameStatic(); }34  /// \}35 36  // Locate the executable file given a module specification.37  //38  // Locating the file should happen only on the local computer or using the39  // current computers global settings.40  static std::optional<ModuleSpec>41  LocateExecutableObjectFile(const ModuleSpec &module_spec);42 43  // Locate the symbol file given a module specification.44  //45  // Locating the file should happen only on the local computer or using the46  // current computers global settings.47  static std::optional<FileSpec>48  LocateExecutableSymbolFile(const ModuleSpec &module_spec,49                             const FileSpecList &default_search_paths);50};51 52} // namespace lldb_private53 54#endif // LLDB_SOURCE_PLUGINS_SYMBOLLOCATOR_DEBUGINFOD_SYMBOLLOCATORDEBUGINFOD_H55