class FileLine
Defined at line 12 of file ../../src/developer/debug/zxdb/symbols/file_line.h
Public Methods
void FileLine ()
Defined at line 13 of file ../../src/developer/debug/zxdb/symbols/file_line.cc
void FileLine (std::string file, int line)
Constructor for a file/line with no compilation directory.
Defined at line 15 of file ../../src/developer/debug/zxdb/symbols/file_line.cc
void FileLine (std::string file, std::string comp_dir, int line)
Constructor with a compilation directory. comp_dir may be empty if not known.
Defined at line 17 of file ../../src/developer/debug/zxdb/symbols/file_line.cc
bool is_valid ()
Defined at line 22 of file ../../src/developer/debug/zxdb/symbols/file_line.h
const std::string & file ()
In our system the file name is always the string that comes out of DWARF which is relative to
the compilation directory.
Defined at line 26 of file ../../src/developer/debug/zxdb/symbols/file_line.h
const std::string & comp_dir ()
The compilation directory from the symbol file that contained the file name. This can have
different meanings depending on compilation options. It can be the absolute path on the system
that did the compilation of the file.
It can also be empty or some relative directory, or it can be an invalid directory if the
build happened on another computer.
Because the meaning of this is impossible to know in advance, it's split out so the outer
code can interpret the file based on settings or by trying to find the file in different ways.
This is considered ancillary data and is not considered part of equality (see operator below).
Defined at line 39 of file ../../src/developer/debug/zxdb/symbols/file_line.h
int line ()
Defined at line 41 of file ../../src/developer/debug/zxdb/symbols/file_line.h