]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb/block: remove block_iterator::d::block, remove union
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 6 Feb 2026 02:52:30 +0000 (21:52 -0500)
committerSimon Marchi <simon.marchi@polymtl.ca>
Fri, 6 Feb 2026 19:01:47 +0000 (14:01 -0500)
commit8a678aea6d36dbf77a93c89adf5f4c7fc9e20249
tree3cbafa6734d849dfdea9367f103d92df8480cfe5
parentdeb47060b5812c6c41ecc790cb28898fcbc45c93
gdb/block: remove block_iterator::d::block, remove union

The block union field is never used.  The block is only used at
initialization time to grab a reference to the mdict, which is stored in
the mdict_iterator.  There is no need to store the block in the iterator
itself for future use.

Remove it and remove the union.  Leave the compunit_symtab field, whose
name unfortunately conflicts with the method.

Change-Id: I09dbc42f937eaba6c70598acca8ff355c4e5bdb9
Approved-By: Tom Tromey <tom@tromey.com>
Tested-By: Guinevere Larsen <guinevere@redhat.com>
gdb/block.c
gdb/block.h