diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-03-26 19:34:06 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2019-04-29 22:01:07 +0100 |
commit | 721b08c68679ad4058bfa7ae73811e6f9e845cfd (patch) | |
tree | bf70fdf2b5660bca12c0b4574df9f928fa50616f /gdb/c-lang.c | |
parent | fc913e53c353218ba1a9efa423c08767691a682a (diff) | |
download | gdb-721b08c68679ad4058bfa7ae73811e6f9e845cfd.zip gdb-721b08c68679ad4058bfa7ae73811e6f9e845cfd.tar.gz gdb-721b08c68679ad4058bfa7ae73811e6f9e845cfd.tar.bz2 |
gdb: Introduce new language field la_struct_too_deep_ellipsis
This commit is preparation work for a later commit, and by itself
makes no user visible change to GDB. I've split this work into a
separate commit in order to make code review easier.
This commit adds a new field 'la_struct_too_deep_ellipsis' to the
language struct, this string will be used in the next commit to print
a language specific string from within the generic value printing
code.
In this commit I add the new field and initialise it for each
language, however at this stage the new field is never used.
gdb/ChangeLog:
* language.h (struct language_defn) <la_struct_too_deep_ellipsis>:
New field.
* ada-lang.c (ada_language_defn): Initialise new field.
* c-lang.c (c_language_defn): Likewise.
(cplus_language_defn): Likewise.
(asm_language_defn): Likewise.
(minimal_language_defn): Likewise.
* d-lang.c (d_language_defn): Likewise.
* f-lang.c (f_language_defn): Likewise.
* go-lang.c (go_language_defn): Likewise.
* language.c (unknown_language_defn): Likewise.
(auto_language_defn): Likewise.
* m2-lang.c (m2_language_defn): Likewise.
* objc-lang.c (objc_language_defn): Likewise.
* opencl-lang.c (opencl_language_defn): Likewise.
* p-lang.c (pascal_language_defn): Likewise.
* rust-lang.c (rust_language_defn): Likewise.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 33506f1..3be5ef5 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -873,7 +873,8 @@ extern const struct language_defn c_language_defn = default_search_name_hash, &c_varobj_ops, c_get_compile_context, - c_compute_program + c_compute_program, + "{...}" /* la_struct_too_deep_ellipsis */ }; enum cplus_primitive_types { @@ -1017,7 +1018,8 @@ extern const struct language_defn cplus_language_defn = cp_search_name_hash, &cplus_varobj_ops, cplus_get_compile_context, - cplus_compute_program + cplus_compute_program, + "{...}" /* la_struct_too_deep_ellipsis */ }; static const char *asm_extensions[] = @@ -1070,7 +1072,8 @@ extern const struct language_defn asm_language_defn = default_search_name_hash, &default_varobj_ops, NULL, - NULL + NULL, + "{...}" /* la_struct_too_deep_ellipsis */ }; /* The following language_defn does not represent a real language. @@ -1123,5 +1126,6 @@ extern const struct language_defn minimal_language_defn = default_search_name_hash, &default_varobj_ops, NULL, - NULL + NULL, + "{...}" /* la_struct_too_deep_ellipsis */ }; |