diff options
author | Tom Tromey <tom@tromey.com> | 2024-12-07 17:28:30 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-12-20 10:07:03 -0700 |
commit | 66834f8da920eb2f2c348259046667decdcfb822 (patch) | |
tree | 3a15596e4d7c84a09d3d9f31574058b8edd2927a | |
parent | cd676397e5a7920eb0fc916bfde787dde8dea149 (diff) | |
download | binutils-66834f8da920eb2f2c348259046667decdcfb822.zip binutils-66834f8da920eb2f2c348259046667decdcfb822.tar.gz binutils-66834f8da920eb2f2c348259046667decdcfb822.tar.bz2 |
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 <tdevries@suse.de>
-rw-r--r-- | gdb/ada-lang.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index e86b664..fdb89cb 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)) |