From d24e14a0c62181b49f513f6ed3704212fd276c79 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 16 Jan 2023 18:14:47 -0700 Subject: 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. --- gdb/rust-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/rust-parse.c') diff --git a/gdb/rust-parse.c b/gdb/rust-parse.c index 9074d65..545d014 100644 --- a/gdb/rust-parse.c +++ b/gdb/rust-parse.c @@ -421,7 +421,7 @@ munge_name_and_block (const char **name, const struct block **block) if (startswith (*name, "::")) { *name += 2; - *block = block_static_block (*block); + *block = (*block)->static_block (); } } -- cgit v1.1