gdb: Convert language la_value_print field to a method
This commit changes the language_data::la_value_print function pointer member variable into a member function of language_defn. There should be no user visible changes after this commit. gdb/ChangeLog: * ada-lang.c (ada_language_data): Delete la_value_print initializer. (ada_language::value_print): New member function. * c-lang.c (c_language_data): Delete la_value_print initializer. (cplus_language_data): Likewise. (asm_language_data): Likewise. (minimal_language_data): Likewise. * d-lang.c (d_language_data): Likewise. * f-lang.c (f_language_data): Likewise. * go-lang.c (go_language_data): Likewise. * language.c (unk_lang_value_print): Delete. (language_defn::value_print): Define new member function. (unknown_language_data): Delete la_value_print initializer. (unknown_language::value_print): New member function. (auto_language_data): Delete la_value_print initializer. (auto_language::value_print): New member function. * language.h (language_data): Delete la_value_print field. (language_defn::value_print): Declare new member function. (LA_VALUE_PRINT): Update call to value_print. * m2-lang.c (m2_language_data): Delete la_value_print initializer. * objc-lang.c (objc_language_data): Likewise. * opencl-lang.c (opencl_language_data): Likewise. * p-lang.c (pascal_language_data): Likewise. (pascal_language::value_print): New member function. * rust-lang.c (rust_language_data): Delete la_value_print initializer.
This commit is contained in:
parent
f16a9f57b5
commit
a1d1fa3e41
13 changed files with 75 additions and 32 deletions
|
@ -896,7 +896,6 @@ extern const struct language_data c_language_data =
|
|||
c_emit_char, /* Print a single char */
|
||||
c_print_typedef, /* Print a typedef using appropriate syntax */
|
||||
c_value_print_inner, /* la_value_print_inner */
|
||||
c_value_print, /* Print a top-level value */
|
||||
NULL, /* name_of_this */
|
||||
true, /* la_store_sym_names_in_linkage_form_p */
|
||||
basic_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
|
||||
|
@ -1007,7 +1006,6 @@ extern const struct language_data cplus_language_data =
|
|||
c_emit_char, /* Print a single char */
|
||||
c_print_typedef, /* Print a typedef using appropriate syntax */
|
||||
c_value_print_inner, /* la_value_print_inner */
|
||||
c_value_print, /* Print a top-level value */
|
||||
"this", /* name_of_this */
|
||||
false, /* la_store_sym_names_in_linkage_form_p */
|
||||
cp_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
|
||||
|
@ -1206,7 +1204,6 @@ extern const struct language_data asm_language_data =
|
|||
c_emit_char, /* Print a single char */
|
||||
c_print_typedef, /* Print a typedef using appropriate syntax */
|
||||
c_value_print_inner, /* la_value_print_inner */
|
||||
c_value_print, /* Print a top-level value */
|
||||
NULL, /* name_of_this */
|
||||
true, /* la_store_sym_names_in_linkage_form_p */
|
||||
basic_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
|
||||
|
@ -1272,7 +1269,6 @@ extern const struct language_data minimal_language_data =
|
|||
c_emit_char, /* Print a single char */
|
||||
c_print_typedef, /* Print a typedef using appropriate syntax */
|
||||
c_value_print_inner, /* la_value_print_inner */
|
||||
c_value_print, /* Print a top-level value */
|
||||
NULL, /* name_of_this */
|
||||
true, /* la_store_sym_names_in_linkage_form_p */
|
||||
basic_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue