mirror of
https://github.com/intel/llvm.git
synced 2026-01-13 19:08:21 +08:00
[lldb] Reland: Store SupportFile in FileEntry (NFC) (#85892)
This is another step towards supporting DWARF5 checksums and inline source code in LLDB. This is a reland of #85468 but without the functional change of storing the support file from the line table (yet).
This commit is contained in:
committed by
GitHub
parent
0c8dfc85c3
commit
556fe5f290
@@ -158,7 +158,7 @@ protected:
|
||||
if (module_list.GetSize() &&
|
||||
module_list.GetIndexForModule(module) == LLDB_INVALID_INDEX32)
|
||||
continue;
|
||||
if (!FileSpec::Match(file_spec, line_entry.file))
|
||||
if (!FileSpec::Match(file_spec, line_entry.GetFile()))
|
||||
continue;
|
||||
if (start_line > 0 && line_entry.line < start_line)
|
||||
continue;
|
||||
@@ -239,7 +239,7 @@ protected:
|
||||
num_matches++;
|
||||
if (num_lines > 0 && num_matches > num_lines)
|
||||
break;
|
||||
assert(cu_file_spec == line_entry.file);
|
||||
assert(cu_file_spec == line_entry.GetFile());
|
||||
if (!cu_header_printed) {
|
||||
if (num_matches > 0)
|
||||
strm << "\n\n";
|
||||
@@ -760,11 +760,11 @@ protected:
|
||||
bool operator<(const SourceInfo &rhs) const {
|
||||
if (function.GetCString() < rhs.function.GetCString())
|
||||
return true;
|
||||
if (line_entry.file.GetDirectory().GetCString() <
|
||||
rhs.line_entry.file.GetDirectory().GetCString())
|
||||
if (line_entry.GetFile().GetDirectory().GetCString() <
|
||||
rhs.line_entry.GetFile().GetDirectory().GetCString())
|
||||
return true;
|
||||
if (line_entry.file.GetFilename().GetCString() <
|
||||
rhs.line_entry.file.GetFilename().GetCString())
|
||||
if (line_entry.GetFile().GetFilename().GetCString() <
|
||||
rhs.line_entry.GetFile().GetFilename().GetCString())
|
||||
return true;
|
||||
if (line_entry.line < rhs.line_entry.line)
|
||||
return true;
|
||||
@@ -799,7 +799,7 @@ protected:
|
||||
sc.function->GetEndLineSourceInfo(end_file, end_line);
|
||||
} else {
|
||||
// We have an inlined function
|
||||
start_file = source_info.line_entry.file;
|
||||
start_file = source_info.line_entry.GetFile();
|
||||
start_line = source_info.line_entry.line;
|
||||
end_line = start_line + m_options.num_lines;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user