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/rust-parse.c | |
parent | 99f3dfd0f94144d295885e79f4ff5a5f8119fb04 (diff) | |
download | gdb-d24e14a0c62181b49f513f6ed3704212fd276c79.zip gdb-d24e14a0c62181b49f513f6ed3704212fd276c79.tar.gz gdb-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/rust-parse.c')
-rw-r--r-- | gdb/rust-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 (); } } |