Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix inverted logic in DwarfDyninst::is_cudie #1505

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions dwarf/h/dwarf_cu_info.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ namespace Dyninst { namespace DwarfDyninst {
inline bool is_typecu(Dwarf_Die die) { return dwarf_tag(&die) == DW_TAG_type_unit; }

inline bool is_cudie(Dwarf_Die die) {
// If there is an inner CU attribute, then it's not a CU
if (die.cu)
// If there is not an inner CU attribute, then it's not a CU
if (!die.cu)
return false;

// These are best guess. Ideally, we'd like to interrogate
Expand Down