]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/dwarf: move loops into locate_dw{o,z}_sections
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 6 May 2025 17:03:46 +0000 (13:03 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 12 May 2025 18:05:21 +0000 (14:05 -0400)
commit8422833a4f17d6542f8331e0408fe3e81abc6d78
tree3007c93f1eae5ac6de22f2c030e0f6c7546a1919
parentb33b677beadcb40369b1942169a3cdda636755c4
gdb/dwarf: move loops into locate_dw{o,z}_sections

For a subsequent patch, it would be easier if the loop over sections
inside locate_dwo_sections (I want to maintain some state for the
duration of the loop).  Move the for loop in there.  And because
locate_dwz_sections is very similar, modify that one too, to keep both
in sync.

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