aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-function.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2025-07-09 11:35:11 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2025-08-01 00:25:51 -0400
commit52f0642b075c9f81c63f554203cee84cbc1f5bf8 (patch)
treee6bdda2506b59902aa8fc4521399c162f6b793ce /gdb/python/py-function.c
parent5acdeb08eb52cb1dd893853376c380412d5706cb (diff)
downloadbinutils-52f0642b075c9f81c63f554203cee84cbc1f5bf8.zip
binutils-52f0642b075c9f81c63f554203cee84cbc1f5bf8.tar.gz
binutils-52f0642b075c9f81c63f554203cee84cbc1f5bf8.tar.bz2
gdb/dwarf: make .gdb_index reader use its own list of units
The .gdb_index reader currently uses per_bfd::all_units when translating a numerical index (as found in an index entry) to a dwarf2_per_cu. The order of per_bfd::all_units is going to change in a subsequent patch, so the indices as found in the index won't map to the right unit in all_units. Change the .gdb_index reader to maintain its own vector, with the units in the same order as found in the .gdb_index header. This is similar to what the .debug_names reader does. But unlike .debug_names, .gdb_index treats the CUs and TUs as a single list, as far as the numerical indices are concerned, so we only need a single list here (versus two for .debug_names). Change-Id: I235e9b99bf02fc160dfcdaa610c9aca471f298a7 Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-function.c')
0 files changed, 0 insertions, 0 deletions