]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use block::is_static_block in ada-lang.c
authorTom Tromey <tom@tromey.com>
Sun, 8 Dec 2024 00:28:30 +0000 (17:28 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 20 Dec 2024 17:07:03 +0000 (10:07 -0700)
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 <tdevries@suse.de>
gdb/ada-lang.c

index e86b664e3e2687676d8b394de01f3043517945b9..fdb89cb0bb3e3dff493099dfac51e5a55f017375 100644 (file)
@@ -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))