aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-parse.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/rust-parse.c
parenta4dfe747564a5728da7c79ca2be3659148c87a49 (diff)
downloadbinutils-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-parse.c')
-rw-r--r--gdb/rust-parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c
index 72b843e..9074d65 100644
--- a/gdb/rust-parse.c
+++ b/gdb/rust-parse.c
@@ -375,7 +375,7 @@ rust_parser::super_name (const std::string &ident, unsigned int n_supers)
{
const char *scope = "";
if (pstate->expression_context_block != nullptr)
- scope = block_scope (pstate->expression_context_block);
+ scope = pstate->expression_context_block->scope ();
int offset;
if (scope[0] == '\0')