From: Joel Brobecker Date: Mon, 6 Oct 2003 22:38:03 +0000 (+0000) Subject: * language.h (language_defn): new field, la_word_break_characters. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6084f43ac2f372ffb54f26cafab54f0015090ce8;p=binutils-gdb.git * language.h (language_defn): new field, la_word_break_characters. * language.c (unknown_language_defn): Set new field to default_word_break_characters. (auto_language_defn): Likewise. (local_language_defn): Likewise. * ada-lang.c (ada_language_defn): Likewise. * c-lang.c (c_language_defn): Likewise. (cplus_language_defn): Likewise. (asm_language_defn): Likewise. (minimal_language_defn): Likewise. * f-lang.c (f_language_defn): Likewise. * jv-lang.c (java_language_defn): Likewise. * m2-lang.c (m2_language_defn): Likewise. * objc-lang.c (objc_language_defn): Likewise. * p-lang.c (pascal_language_defn): Likewise. * scm-lang.c (scm_language_defn): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8ad0bc06c12..1afa47e2909 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,22 @@ +2003-10-06 J. Brobecker + + * language.h (language_defn): new field, la_word_break_characters. + * language.c (unknown_language_defn): Set new field to + default_word_break_characters. + (auto_language_defn): Likewise. + (local_language_defn): Likewise. + * ada-lang.c (ada_language_defn): Likewise. + * c-lang.c (c_language_defn): Likewise. + (cplus_language_defn): Likewise. + (asm_language_defn): Likewise. + (minimal_language_defn): Likewise. + * f-lang.c (f_language_defn): Likewise. + * jv-lang.c (java_language_defn): Likewise. + * m2-lang.c (m2_language_defn): Likewise. + * objc-lang.c (objc_language_defn): Likewise. + * p-lang.c (pascal_language_defn): Likewise. + * scm-lang.c (scm_language_defn): Likewise. + 2003-10-06 Andrew Cagney * ppc-sysv-tdep.c: Re-indent. diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c index 7244ca29ae4..dabad571db7 100644 --- a/gdb/ada-lang.c +++ b/gdb/ada-lang.c @@ -8035,6 +8035,7 @@ const struct language_defn ada_language_defn = { 1, /* c-style arrays (FIXME?) */ 0, /* String lower bound (FIXME?) */ &builtin_type_ada_char, + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/c-lang.c b/gdb/c-lang.c index f5a87a473b4..a296d8193b4 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -565,6 +565,7 @@ const struct language_defn c_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; @@ -621,6 +622,7 @@ const struct language_defn cplus_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; @@ -654,6 +656,7 @@ const struct language_defn asm_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; @@ -692,6 +695,7 @@ const struct language_defn minimal_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/f-lang.c b/gdb/f-lang.c index f84e0505fe8..c6c482abe8f 100644 --- a/gdb/f-lang.c +++ b/gdb/f-lang.c @@ -484,6 +484,7 @@ const struct language_defn f_language_defn = 0, /* arrays are first-class (not c-style) */ 1, /* String lower bound */ &builtin_type_f_character, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/jv-lang.c b/gdb/jv-lang.c index 0913aceb8ac..0d4d6bb705d 100644 --- a/gdb/jv-lang.c +++ b/gdb/jv-lang.c @@ -1069,6 +1069,7 @@ const struct language_defn java_language_defn = 0, /* not c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/language.c b/gdb/language.c index 6cb2c383616..de7b491cb26 100644 --- a/gdb/language.c +++ b/gdb/language.c @@ -1298,6 +1298,7 @@ const struct language_defn unknown_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; @@ -1332,6 +1333,7 @@ const struct language_defn auto_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; @@ -1365,6 +1367,7 @@ const struct language_defn local_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/language.h b/gdb/language.h index 6d039c762bb..7470167f117 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -267,6 +267,9 @@ struct language_defn /* Type of elements of strings. */ struct type **string_char_type; + /* The list of characters forming word boundaries. */ + char *(*la_word_break_characters) (void); + /* Add fields above this point, so the magic number is always last. */ /* Magic number for compat checking */ diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c index f0679070ff4..7fe2e34e6d6 100644 --- a/gdb/m2-lang.c +++ b/gdb/m2-lang.c @@ -437,6 +437,7 @@ const struct language_defn m2_language_defn = 0, /* arrays are first-class (not c-style) */ 0, /* String lower bound */ &builtin_type_m2_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/objc-lang.c b/gdb/objc-lang.c index 7c74e6daf38..c65561689a2 100644 --- a/gdb/objc-lang.c +++ b/gdb/objc-lang.c @@ -681,6 +681,7 @@ const struct language_defn objc_language_defn = { 1, /* C-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/p-lang.c b/gdb/p-lang.c index a12f7ec78a0..3ebb433d1a5 100644 --- a/gdb/p-lang.c +++ b/gdb/p-lang.c @@ -473,6 +473,7 @@ const struct language_defn pascal_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC }; diff --git a/gdb/scm-lang.c b/gdb/scm-lang.c index b02fd6fa2bd..7e2ad8fac6f 100644 --- a/gdb/scm-lang.c +++ b/gdb/scm-lang.c @@ -272,6 +272,7 @@ const struct language_defn scm_language_defn = 1, /* c-style arrays */ 0, /* String lower bound */ &builtin_type_char, /* Type of string elements */ + default_word_break_characters, LANG_MAGIC };