Skip to content

Commit

Permalink
Add some more logging for DWOs in SourcesCommand.
Browse files Browse the repository at this point in the history
  • Loading branch information
khuey committed Apr 15, 2024
1 parent 126ceea commit 7eea435
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/SourcesCommand.cc
Original file line number Diff line number Diff line change
Expand Up @@ -502,11 +502,13 @@ static bool process_compilation_units(ElfFileReader& reader,
if (!has_dwo_id) {
dwo_id = cu.die().unsigned_attr(DW_AT_GNU_dwo_id, &has_dwo_id, &ok);
if (!ok) {
LOG(warn) << "Have DWO name " << dwo_name << " but can't get DWO id";
continue;
}
}
if (has_dwo_id) {
string full_name;
LOG(debug) << "Have DWO name " << dwo_name << " id " << HEX(dwo_id);
if (resolve_file_name(original_file_name.c_str(), comp_dir.c_str(), original_comp_dir, comp_dir_substitution, nullptr, dwo_name, dir_exists_cache, full_name)) {
string c = comp_dir;
dwos->push_back({ dwo_name, trace_relative_name, build_id, std::move(c), full_name, dwo_id });
Expand Down

0 comments on commit 7eea435

Please sign in to comment.