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/dbxread.c | |
parent | a4dfe747564a5728da7c79ca2be3659148c87a49 (diff) | |
download | gdb-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/dbxread.c')
-rw-r--r-- | gdb/dbxread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 36e744f..02c7e31 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -2361,8 +2361,8 @@ cp_set_block_scope (const struct symbol *symbol, const char *name = symbol->demangled_name (); unsigned int prefix_len = cp_entire_prefix_len (name); - block_set_scope (block, obstack_strndup (obstack, name, prefix_len), - obstack); + block->set_scope (obstack_strndup (obstack, name, prefix_len), + obstack); } } |