Landing: 1ad761d97880

Project / Subsystem

binutils / binutils

Date

2026-08-27

Author

Alan Modra <amodra@sourceware.org>

Commit

1ad761d978807cdd3a9972e32db6e3899de2115d

Source

public_inbox

Perf win

No

Breaking

No

All attributes

project
binutils
subsystem
binutils
patch_id
—
commit_hash
1ad761d978807cdd3a9972e32db6e3899de2115d
source_type
public_inbox
headline
Extract DWO section check into dedicated function
tldr
Refactors DWARF handling in readelf to use a new `is_dwo_section` function.
author
Alan Modra <amodra@sourceware.org>
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • refactor
  • • dwarf
  • • debugging
discussion_id_link
—
bugzilla_pr
—
date
2026-08-27T00:00:00.000Z

This change introduces a new helper function, is_dwo_section, in binutils/dwarf.c to determine if a DWARF section has the .dwo suffix. This function is then used by read_and_display_attr_value, display_debug_macro, display_debug_loc, and display_debug_str_offsets to simplify code and improve readability when identifying DWO sections.