diff options
author | Tom Tromey <tom@tromey.com> | 2023-01-16 17:39:55 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-02-19 12:51:05 -0700 |
commit | 3c45e9f915ae4aeab7312d6fc55a947859057572 (patch) | |
tree | e5fb72d611406e485457ac45037a3676fa07cb45 /gdb/rust-lang.h | |
parent | a4dfe747564a5728da7c79ca2be3659148c87a49 (diff) | |
download | binutils-3c45e9f915ae4aeab7312d6fc55a947859057572.zip binutils-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.gz binutils-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.bz2 |
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/rust-lang.h')
-rw-r--r-- | gdb/rust-lang.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.h b/gdb/rust-lang.h index 497342d..37a22e7 100644 --- a/gdb/rust-lang.h +++ b/gdb/rust-lang.h @@ -148,7 +148,7 @@ public: { struct block_symbol result = {}; - const char *scope = block == nullptr ? "" : block_scope (block); + const char *scope = block == nullptr ? "" : block->scope (); symbol_lookup_debug_printf ("rust_lookup_symbol_non_local (%s, %s (scope %s), %s)", name, host_address_to_string (block), scope, |