diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-09-16 16:27:30 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-10-23 10:57:14 +0100 |
commit | 1a0ea39913588b4e7ae47e384683784314fca8fe (patch) | |
tree | eaacbc454afff822ae1f7495b6bc16532ce2de90 /gdb/f-valprint.c | |
parent | 88cefd9be076ea1f66b933be484d82f200b0f6c3 (diff) | |
download | gdb-1a0ea39913588b4e7ae47e384683784314fca8fe.zip gdb-1a0ea39913588b4e7ae47e384683784314fca8fe.tar.gz gdb-1a0ea39913588b4e7ae47e384683784314fca8fe.tar.bz2 |
gdb: move f_language class into a header file
Moves the f_language class from f-lang.c into f-lang.h. The benefit
of this is that functions declared in other f-*.c files can become
member functions without having to go through a level of indirection.
Some additional support functions have now become private member
functions of the f_language class, these are mostly functions that
then called some other function that was itself a member of the
language_defn class hierarchy.
There should be no user visible changes after this commit.
gdb/ChangeLog:
* f-exp.y (f_parse): Rename to...
(f_language::parser): ...this.
* f-lang.c (f_get_encoding): Rename to...
(f_language::get_encoding): ...this.
(f_op_print_tab): Rename to...
(f_language::op_print_tab): ...this.
(exp_descriptor_f): Rename to...
(f_language::exp_descriptor_tab): ...this.
(class f_language): Moved to f-lang.h.
(f_language::language_arch_info): New function, moved out of class
declaration.
(f_language::search_name_hash): Likewise.
(f_language::lookup_symbol_nonlocal): Likewise.
(f_language::get_symbol_name_matcher_inner): Likewise.
* f-lang.h: Add 'valprint.h' include.
(class f_language): Moved here from f-lang.c.
* f-typeprint.c (f_type_print_args): Delete commented out
declaration.
(f_print_typedef): Rename to...
(f_language::print_typedef): ...this.
(f_print_type): Rename to...
(f_language::print_type): ...this.
(f_type_print_varspec_prefix): Delete declaration and rename to...
(f_language::f_type_print_varspec_prefix): ...this.
(f_type_print_varspec_suffix): Delete declaration and rename to...
(f_language::f_type_print_varspec_suffix): ...this.
(f_type_print_base): Delete declaration and rename to...
(f_language::f_type_print_base): ...this.
* f-valprint.c (f_value_print_inner): Rename to...
(f_language::value_print_inner): ...this.
* parse.c: Delete 'f-lang.h' include.
Diffstat (limited to 'gdb/f-valprint.c')
-rw-r--r-- | gdb/f-valprint.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/f-valprint.c b/gdb/f-valprint.c index e7dc20d..95630a7 100644 --- a/gdb/f-valprint.c +++ b/gdb/f-valprint.c @@ -214,8 +214,9 @@ static const struct generic_val_print_decorations f_decorations = /* See f-lang.h. */ void -f_value_print_inner (struct value *val, struct ui_file *stream, int recurse, - const struct value_print_options *options) +f_language::value_print_inner (struct value *val, struct ui_file *stream, + int recurse, + const struct value_print_options *options) const { struct type *type = check_typedef (value_type (val)); struct gdbarch *gdbarch = get_type_arch (type); |