diff options
author | Yao Qi <yao@codesourcery.com> | 2013-10-26 16:00:11 +0800 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-11-07 15:08:09 +0800 |
commit | 6abde28fa9f6f14e03e3d9414da6423843d5e5c4 (patch) | |
tree | ab7bc04e868a926907b6ecac48cb02a1cef9c387 /gdb/c-lang.c | |
parent | 27cd387b7c3e45685db2f0dae4e9188f562cb7f0 (diff) | |
download | gdb-6abde28fa9f6f14e03e3d9414da6423843d5e5c4.zip gdb-6abde28fa9f6f14e03e3d9414da6423843d5e5c4.tar.gz gdb-6abde28fa9f6f14e03e3d9414da6423843d5e5c4.tar.bz2 |
New field 'la_natural_name' in struct language_defn
This patch adds "natural name" of each supported languages, which will
be used by the next patch.
gdb:
2013-11-07 Yao Qi <yao@codesourcery.com>
* language.h (struct language_defn) <la_natural_name>: New field.
* ada-lang.c (ada_language_defn): Initialize field 'la_natural_name'.
* c-lang.c (c_language_defn): Likewise.
(cplus_language_defn, asm_language_defn): Likewise.
* d-lang.c (d_language_defn): Likewise.
* f-lang.c (f_language_defn): Likewise.
* go-lang.c (go_language_defn): Likewise.
* jv-lang.c (java_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.
Diffstat (limited to 'gdb/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 7c09029..37b423a 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -812,6 +812,7 @@ const struct exp_descriptor exp_descriptor_c = const struct language_defn c_language_defn = { "c", /* Language name */ + "C", language_c, range_check_off, case_sensitive_on, @@ -936,6 +937,7 @@ cplus_language_arch_info (struct gdbarch *gdbarch, const struct language_defn cplus_language_defn = { "c++", /* Language name */ + "C++", language_cplus, range_check_off, case_sensitive_on, @@ -978,6 +980,7 @@ const struct language_defn cplus_language_defn = const struct language_defn asm_language_defn = { "asm", /* Language name */ + "assembly", language_asm, range_check_off, case_sensitive_on, @@ -1025,6 +1028,7 @@ const struct language_defn asm_language_defn = const struct language_defn minimal_language_defn = { "minimal", /* Language name */ + "Minimal", language_minimal, range_check_off, case_sensitive_on, |