aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-function.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2025-07-09 11:35:09 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2025-08-01 00:25:15 -0400
commit3e27b49025ff4cc62a8d028f7de6aa1a53a31df1 (patch)
treee8f475a5fa75d7ca5ed48b1a4af53de50d6a3cea /gdb/python/py-function.c
parentbedd6a7a44f0d02f087595888a6cba44e2f6d1ce (diff)
downloadbinutils-3e27b49025ff4cc62a8d028f7de6aa1a53a31df1.zip
binutils-3e27b49025ff4cc62a8d028f7de6aa1a53a31df1.tar.gz
binutils-3e27b49025ff4cc62a8d028f7de6aa1a53a31df1.tar.bz2
gdb/dwarf: remove all_{comp,type}_units views
In DWARF 5, type units appear in the .debug_info section, interleaved with comp units, and the order in all_units reflects that. The all_comp_units and all_type_units views are wrong in that case (all_comp_units contains some type units, and vice-versa). It would be possible to manually sort all_units to ensure that type units follow comp units, but this series takes the approach of sorting the units by section and section offset. Remove those views, and replace their uses with num_comp_units and num_type_units. It appears that the views were only used to know the number of each kind. The finalize_all_units function is now empty, but I am keeping it because a subsequent patch adds a call to std::sort in there to sort the all_units vector. Change-Id: I42a65b6f1b6192957b55cea0e2eaff097e13a33b Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/python/py-function.c')
0 files changed, 0 insertions, 0 deletions