diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-16 18:14:47 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:06 -0700 |
commit | d24e14a0c62181b49f513f6ed3704212fd276c79 (patch) | |
tree | 341cbf16737b778d0a4cb71276adfe209cf4bb6c /gdb/cp-namespace.c | |
parent | 99f3dfd0f94144d295885e79f4ff5a5f8119fb04 (diff) | |
download | binutils-d24e14a0c62181b49f513f6ed3704212fd276c79.zip binutils-d24e14a0c62181b49f513f6ed3704212fd276c79.tar.gz binutils-d24e14a0c62181b49f513f6ed3704212fd276c79.tar.bz2 |
Convert block_static_block and block_global_block to methods
This converts block_static_block and block_global_block to be methods.
This was mostly written by script. It was simpler to convert them at
the same time because they're often used near each other.
Diffstat (limited to 'gdb/cp-namespace.c')
-rw-r--r-- | gdb/cp-namespace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cp-namespace.c b/gdb/cp-namespace.c index 2d44b7b..14d8076 100644 --- a/gdb/cp-namespace.c +++ b/gdb/cp-namespace.c @@ -141,7 +141,7 @@ cp_basic_lookup_symbol (const char *name, const struct block *block, but should be treated as local to a single file nonetheless. So we only search the current file's global block. */ - const struct block *global_block = block_global_block (block); + const struct block *global_block = block->global_block (); if (global_block != NULL) { |