Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lldb/unittests/SymbolFile/PDB/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ add_lldb_unittest(SymbolFilePDBTests
lldbHost
lldbSymbol
lldbPluginObjectFilePECOFF
lldbPluginPlatformWindows
lldbPluginSymbolFileDWARF
lldbPluginSymbolFilePDB
lldbPluginTypeSystemClang
Expand Down
10 changes: 10 additions & 0 deletions lldb/unittests/SymbolFile/PDB/SymbolFilePDBTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@
#include "llvm/Testing/Support/Error.h"

#include "Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h"
#include "Plugins/Platform/Windows/PlatformWindows.h"
#include "Plugins/SymbolFile/DWARF/SymbolFileDWARF.h"
#include "Plugins/SymbolFile/PDB/SymbolFilePDB.h"
#include "Plugins/TypeSystem/Clang/TypeSystemClang.h"
#include "TestingSupport/TestUtilities.h"
#include "lldb/Core/Address.h"
#include "lldb/Core/Debugger.h"
#include "lldb/Core/Module.h"
#include "lldb/Core/ModuleSpec.h"
#include "lldb/Host/FileSystem.h"
Expand Down Expand Up @@ -59,6 +61,13 @@ class SymbolFilePDBTests : public testing::Test {

m_pdb_test_exe = GetInputFilePath("test-pdb.exe");
m_types_test_exe = GetInputFilePath("test-pdb-types.exe");

ArchSpec arch("x86_64-pc-windows-msvc");
Platform::SetHostPlatform(PlatformWindows::CreateInstance(true, &arch));
m_debugger_sp = Debugger::CreateInstance();
m_debugger_sp->SetPropertyValue(nullptr,
lldb_private::eVarSetOperationAssign,
"plugin.symbol-file.pdb.reader", "dia");
}

void TearDown() override {
Expand All @@ -77,6 +86,7 @@ class SymbolFilePDBTests : public testing::Test {
protected:
std::string m_pdb_test_exe;
std::string m_types_test_exe;
lldb::DebuggerSP m_debugger_sp;

bool FileSpecMatchesAsBaseOrFull(const FileSpec &left,
const FileSpec &right) const {
Expand Down
Loading