From: Tom Tromey Date: Sun, 8 Dec 2024 00:28:30 +0000 (-0700) Subject: Use block::is_static_block in ada-lang.c X-Git-Tag: gdb-16-branchpoint~33 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66834f8da920eb2f2c348259046667decdcfb822;p=thirdparty%2Fbinutils-gdb.git Use block::is_static_block in ada-lang.c This changes one spot in ada-lang.c to use block::is_static_block rather than a hand-rolled implementation. Note this also fixes the call -- what is currently written there is wrong. Approved-By: Tom de Vries --- diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index e86b664e3e2..fdb89cb0bb3 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -13637,7 +13637,7 @@ public: for (b = get_selected_block (0); b != NULL; b = b->superblock ()) { - if (!b->superblock ()) + if (b->is_static_block ()) surrounding_static_block = b; /* For elmin of dups */ for (struct symbol *sym : block_iterator_range (b))