From 22e3f3ed5c417fca6a39173a671dba707d2d6eaf Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Tue, 23 Jun 2020 14:16:32 +0100 Subject: gdb: Convert la_struct_too_deep_ellipsis to a method Convert language_data::la_struct_too_deep_ellipsis member variable to a method in language_defn. There should be no user visible changes after this commit. gdb/ChangeLog: * ada-lang.c (ada_language_data): Remove la_struct_too_deep_ellipsis initializer. (ada_language::struct_too_deep_ellipsis): New member function. * c-lang.c (c_language_data): Remove la_struct_too_deep_ellipsis initializer. (cplus_language_data): Likewise. (asm_language_data): Likewise. (minimal_language_data): Likewise. * cp-valprint.c (cp_print_value): Update call to struct_too_deep_ellipsis. * d-lang.c (d_language_data): Remove la_struct_too_deep_ellipsis initializer. * f-lang.c (f_language_data): Likewise. (f_language::struct_too_deep_ellipsis): New member function. * go-lang.c (go_language_data): Remove la_struct_too_deep_ellipsis initializer. * language.c (unknown_language_data): Likewise. (auto_language_data): Likewise. * language.h (language_data): Delete la_struct_too_deep_ellipsis member variable. (language_defn::struct_too_deep_ellipsis): New member function. * m2-lang.c (m2_language_data): Remove la_struct_too_deep_ellipsis initializer.Q * 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. * valprint.c (val_print_check_max_depth): Update call to struct_too_deep_ellipsis. --- gdb/ada-lang.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gdb/ada-lang.c') diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 5f0e68e..3ad693f 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -13729,7 +13729,6 @@ extern const struct language_data ada_language_data = 0, /* c-style arrays */ 1, /* String lower bound */ &ada_varobj_ops, - "(...)" /* la_struct_too_deep_ellipsis */ }; /* Class representing the Ada language. */ @@ -14187,6 +14186,10 @@ public: return ada_is_string_type (type); } + /* See language.h. */ + + const char *struct_too_deep_ellipsis () const override + { return "(...)"; } protected: /* See language.h. */ -- cgit v1.1