aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-19 18:36:17 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:06 -0700
commit0688bf443c618be0a4a22cbc7ffb802dd771801c (patch)
tree443feb429581ebd8819a0a32dcbde0bd1f0fd443 /gdb/ada-lang.c
parent7bf30a4447713192eb49be43d7f66630d570652b (diff)
downloadbinutils-0688bf443c618be0a4a22cbc7ffb802dd771801c.zip
binutils-0688bf443c618be0a4a22cbc7ffb802dd771801c.tar.gz
binutils-0688bf443c618be0a4a22cbc7ffb802dd771801c.tar.bz2
Store 'name' in block_iterator
This changes the block_iterator to store the 'name' that is used by block_iter_match_next. This avoids any problem where the name could be passed inconsistently, and also makes the subsequent patches easier to understand.
Diffstat (limited to 'gdb/ada-lang.c')
-rw-r--r--gdb/ada-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 1f381a2..8b503b3 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -6081,7 +6081,7 @@ ada_add_block_symbols (std::vector<struct block_symbol> &result,
found_sym = false;
for (sym = block_iter_match_first (block, lookup_name, &iter);
sym != NULL;
- sym = block_iter_match_next (lookup_name, &iter))
+ sym = block_iter_match_next (&iter))
{
if (symbol_matches_domain (sym->language (), sym->domain (), domain))
{