class MockLineTable
Defined at line 13 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.h
Public Methods
void MockLineTable (FileNameVector files, RowVector rows)
Defined at line 12 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
void ~MockLineTable ()
Defined at line 15 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
size_t GetNumFileNames ()
LineTable implementation.
Defined at line 17 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
const std::vector<llvm::DWARFDebugLine::Row> & GetRows ()
Defined at line 19 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
std::optional<std::string> GetFileNameByIndex (uint64_t file_id)
Defined at line 21 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
LazySymbol GetFunctionForRow (const llvm::DWARFDebugLine::Row & row)
Defined at line 28 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
void SetSymbolForRow (const llvm::DWARFDebugLine::Row & row, fxl::RefPtr<Symbol> symbol)
Defined at line 36 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
Row MakeStatementRow (uint64_t address, uint16_t file, uint32_t line)
Helper to construct a line table row.
Note that the |file| is a 1-based number (subtract 1 to index into file_names_).
All flags will be set to 0 except:
- is_statement by MakeStatementRow(), MakePrologueEndRow() and MakeEndSequenceRow().
- prologue_end by MakePrologueEndRow().
- end_sequence by MakeEndSequenceRow().
Defined at line 42 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
Row MakeNonStatementRow (uint64_t address, uint16_t file, uint32_t line)
static
Defined at line 49 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
Row MakePrologueEndRow (uint64_t address, uint16_t file, uint32_t line)
static
Defined at line 67 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc
Row MakeEndSequenceRow (uint64_t address, uint16_t file, uint32_t line)
static
Defined at line 74 of file ../../src/developer/debug/zxdb/symbols/mock_line_table.cc