clang 20.0.0 (based on r547379) from build 12806354. Bug: http://b/379133546 Test: N/A Change-Id: I2eb8938af55d809de674be63cb30cf27e801862b Upstream-Commit: ad834e67b1105d15ef907f6255d4c96e8e733f57
54 lines
2.0 KiB
C++
54 lines
2.0 KiB
C++
//===-- SymbolVendor.h ------------------------------------------*- C++ -*-===//
|
|
//
|
|
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
|
|
// See https://llvm.org/LICENSE.txt for license information.
|
|
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLDB_SYMBOL_SYMBOLVENDOR_H
|
|
#define LLDB_SYMBOL_SYMBOLVENDOR_H
|
|
|
|
#include <vector>
|
|
|
|
#include "lldb/Core/ModuleChild.h"
|
|
#include "lldb/Core/PluginInterface.h"
|
|
#include "lldb/Symbol/SourceModule.h"
|
|
#include "lldb/Symbol/SymbolFile.h"
|
|
#include "lldb/Symbol/TypeMap.h"
|
|
#include "lldb/lldb-private.h"
|
|
#include "llvm/ADT/DenseSet.h"
|
|
|
|
namespace lldb_private {
|
|
|
|
// The symbol vendor class is designed to abstract the process of searching for
|
|
// debug information for a given module. Platforms can subclass this class and
|
|
// provide extra ways to find debug information. Examples would be a subclass
|
|
// that would allow for locating a stand alone debug file, parsing debug maps,
|
|
// or runtime data in the object files. A symbol vendor can use multiple
|
|
// sources (SymbolFile objects) to provide the information and only parse as
|
|
// deep as needed in order to provide the information that is requested.
|
|
class SymbolVendor : public ModuleChild, public PluginInterface {
|
|
public:
|
|
static SymbolVendor *FindPlugin(const lldb::ModuleSP &module_sp,
|
|
Stream *feedback_strm);
|
|
|
|
// Constructors and Destructors
|
|
SymbolVendor(const lldb::ModuleSP &module_sp);
|
|
|
|
void AddSymbolFileRepresentation(const lldb::ObjectFileSP &objfile_sp);
|
|
|
|
SymbolFile *GetSymbolFile() { return m_sym_file_up.get(); }
|
|
|
|
// PluginInterface protocol
|
|
llvm::StringRef GetPluginName() override { return "vendor-default"; }
|
|
|
|
protected:
|
|
std::unique_ptr<SymbolFile> m_sym_file_up; // A single symbol file. Subclasses
|
|
// can add more of these if needed.
|
|
};
|
|
|
|
} // namespace lldb_private
|
|
|
|
#endif // LLDB_SYMBOL_SYMBOLVENDOR_H
|