]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Simplify block_lookup_symbol
authorTom Tromey <tom@tromey.com>
Thu, 2 Jan 2025 22:17:25 +0000 (15:17 -0700)
committerTom Tromey <tom@tromey.com>
Wed, 10 Sep 2025 22:07:57 +0000 (16:07 -0600)
commitaa2d85304419557e1287d149f3a1c3e233c23107
treec52172c9da232c0555027bd6ae3548160ad58a1c
parent4a4ebdf9ddd5b3892c764b6a409a1e99209fa2e9
Simplify block_lookup_symbol

One loop in block_lookup_symbol is identical to the code in
block_lookup_symbol_primary.  This patch simplifies the former by
having it call the latter.

This removes an assert.  However, note that the assert is not needed
-- it does not check any invariant that must be maintained.

Acked-By: Simon Marchi <simon.marchi@efficios.com>
gdb/block.c