]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: change some per-objfile functions to be per-bfd
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 25 Feb 2025 21:25:18 +0000 (16:25 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Wed, 26 Feb 2025 03:35:24 +0000 (22:35 -0500)
commitfb3511fc4765a8bbc837dc798c683d46a0d460cb
treea298fe995bf0ba7b490e57cba964f77a932c8e83
parent643a92ff411c2df0ba82697c8b2c4ab110ddf35c
gdb/dwarf: change some per-objfile functions to be per-bfd

I identified the following functions that currently take a
dwarf2_per_objfile, but could take a less specific dwarf2_per_bfd.

 - try_open_dwop_file
 - open_dwo_file
 - open_dwp_file

The uses of the per-objfile object in try_open_dwop_file can be replaced
with equivalent per-bfd ones.

Change-Id: Ia31fa0b988375e86a715ee863d4ec3c572ce89c0
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/read.c