summaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2023-01-16 17:39:55 -0700
committerTom Tromey <tom@tromey.com>2023-02-19 12:51:05 -0700
commit3c45e9f915ae4aeab7312d6fc55a947859057572 (patch)
treee5fb72d611406e485457ac45037a3676fa07cb45 /gdb/symtab.c
parenta4dfe747564a5728da7c79ca2be3659148c87a49 (diff)
downloadbinutils-gdb-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.gz
Convert more block functions to methods
This converts block_scope, block_set_scope, block_using, and block_set_using to be methods. These are all done at once to make it easier to also convert block_initialize_namespace at the same time. This was mostly written by script.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index 52043e4de06..bd6abbf7319 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -2160,7 +2160,7 @@ lookup_local_symbol (const char *name,
struct symbol *sym;
const struct block *static_block = block_static_block (block);
- const char *scope = block_scope (block);
+ const char *scope = block->scope ();
/* Check if it's a global block. */
if (static_block == nullptr)