aboutsummaryrefslogtreecommitdiff
path: root/gdb/rust-lang.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-lang.c
parenta4dfe747564a5728da7c79ca2be3659148c87a49 (diff)
downloadgdb-3c45e9f915ae4aeab7312d6fc55a947859057572.zip
gdb-3c45e9f915ae4aeab7312d6fc55a947859057572.tar.gz
gdb-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.c')
-rw-r--r--gdb/rust-lang.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/rust-lang.c b/gdb/rust-lang.c
index fb9db9f..fe260f1 100644
--- a/gdb/rust-lang.c
+++ b/gdb/rust-lang.c
@@ -58,7 +58,7 @@ rust_last_path_segment (const char *path)
std::string
rust_crate_for_block (const struct block *block)
{
- const char *scope = block_scope (block);
+ const char *scope = block->scope ();
if (scope[0] == '\0')
return std::string ();