]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gdb: make iterate_over_symbols return void, rename to for_each_symbol
authorSimon Marchi <simon.marchi@polymtl.ca>
Thu, 16 Apr 2026 20:16:21 +0000 (16:16 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Fri, 17 Apr 2026 19:30:33 +0000 (15:30 -0400)
commit594acddca78d2ce96029c90cd2ef8d52c3ba1002
tree1274a798987e06c8e589875dd69f0c1b29aa6cc0
parente80c346010c6631fab30055a22d344effc620483
gdb: make iterate_over_symbols return void, rename to for_each_symbol

Nothing really uses the return value of iterate_over_symbols and
language::iterate_over_symbols.  Also, all provided callback always
return true, iterating on all matching symbols.  Simplify them to not
return a value and not have the "stop iterating" feature.

Rename to for_each_symbol, just to be consistent with previous patches.

Also rename symbol_found_callback_ftype to
for_each_symbol_callback_ftype for consistency.

Change-Id: I55ff3162098bb069dc1de1afca10dd9abfc05c34
Approved-By: Andrew Burgess <aburgess@redhat.com>
gdb/ada-lang.c
gdb/language.h
gdb/linespec.c
gdb/linux-nat.c
gdb/nat/linux-nat.h
gdb/symtab.c
gdb/symtab.h