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/sh-tdep.h | |
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/sh-tdep.h')
0 files changed, 0 insertions, 0 deletions