diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-05-01 17:18:36 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2020-06-02 13:53:10 +0100 |
commit | 5bd40f2a3feb273e92b640544f6e5307c8124d90 (patch) | |
tree | c3ba117050973c6ccd8534667b3eeb408f459863 /gdb/m2-lang.c | |
parent | 0874fd075b2a519022259a3cc48e650dc1daeeab (diff) | |
download | gdb-5bd40f2a3feb273e92b640544f6e5307c8124d90.zip gdb-5bd40f2a3feb273e92b640544f6e5307c8124d90.tar.gz gdb-5bd40f2a3feb273e92b640544f6e5307c8124d90.tar.bz2 |
gdb: Convert language la_print_array_index field to a method
This commit changes the language_data::la_print_array_index 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_print_array_index): Delete function, move
implementation to...
(ada_language::print_array_index): ...here.
(ada_language_data): Delete la_print_array_index initializer.
* c-lang.c (c_language_data): Likewise.
(cplus_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 (default_print_array_index): Delete function, move
implementation to...
(language_defn::print_array_index): ...here.
(unknown_language_data): Delete la_print_array_index initializer.
(auto_language_data): Likewise.
* language.h (struct language_data): Delete la_print_array_index
field.
(language_defn::print_array_index): New member function.
(LA_PRINT_ARRAY_INDEX): Update.
(default_print_array_index): Delete declaration.
* m2-lang.c (m2_language_data): Delete la_print_array_index
initializer.
* objc-lang.c (objc_language_data): Likewise.
* opencl-lang.c (opencl_language_data): Likewise.
* p-lang.c (pascal_language_data): Likewise.
* rust-lang.c (rust_language_data): Likewise.
Diffstat (limited to 'gdb/m2-lang.c')
-rw-r--r-- | gdb/m2-lang.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index 57750b5..b7d7681 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -413,7 +413,6 @@ extern const struct language_data m2_language_data = default_word_break_characters, default_collect_symbol_completion_matches, m2_language_arch_info, - default_print_array_index, default_pass_by_reference, c_watch_location_expression, NULL, /* la_get_symbol_name_matcher */ |