class TestSymbolModule
Defined at line 35 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.h
This class loads the unstripped zxdb_symbol_test module with the required LLDB classes for
writing symbol testing.
Public Members
static const char[] kMyNamespaceName
static const char[] kMyFunctionName
static const int kMyFunctionLine
static const uint64_t kMyFunctionAddress
static const size_t kMyFunctionPrologueSize
static const char[] kNamespaceFunctionName
static const char[] kMyClassName
static const char[] kMyInnerClassName
static const char[] kMyMemberOneName
static const char[] kFunctionInTest2Name
static const char[] kMyMemberTwoName
static const char[] kAnonNSFunctionName
static const char[] kGlobalName
static const char[] kClassStaticName
static const char[] kPltFunctionName
static const uint64_t kPltFunctionOffset
static const char[] kCheckedInBuildId
Public Methods
std::string GetTestDataDir ()
Returns the relative directory where the test program can find the checked-in test files. It
will have a trailing slash.
Defined at line 69 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
std::string GetTestFileName ()
Returns the name of the .so file used by this class for doing tests with it that involve
different types of setup.
Defined at line 72 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
std::string GetPrebuiltRustTestFileName ()
Returns the name of the rust executable file used by this class for doing tests with it that
involve different types of setup.
Defined at line 77 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
std::string GetCheckedInTestFileName ()
Returns the checked in .so used for line testing. As the mapping changes between architectures,
the file is compiled offline and remains the same.
Defined at line 82 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
std::string GetStrippedCheckedInTestFileName ()
Returns a stripped version of the file returned by GetCheckedInTestFileName().
Defined at line 87 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
Identifier SplitName (std::string_view input)
Helper to convert symbol names to vectors of components without using the "expr" library. This
just splits on "::" which handles most cases but not elaborate templates.
Defined at line 92 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
ModuleSymbolsImpl * symbols ()
Defined at line 94 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.h
void TestSymbolModule (Kind )
You must call Init() after the constructor to actually load the file.
Defined at line 114 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
void TestSymbolModule (const std::string & sym_name, const std::string & binary_name)
Defined at line 126 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
void ~TestSymbolModule ()
Defined at line 129 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
Err Init (const std::string & build_dir, bool should_index)
Defined at line 131 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.cc
Enumerations
enum Kind
| Name | Value |
|---|---|
| kCheckedIn | 0 |
| kBuilt | 1 |
Which of the symbol files to load int he constructor.
Defined at line 38 of file ../../src/developer/debug/zxdb/symbols/test_symbol_module.h