* language.h (language_defn): new field, la_word_break_characters.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 6 Oct 2003 22:38:03 +0000 (22:38 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 6 Oct 2003 22:38:03 +0000 (22:38 +0000)
        * 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.

gdb/ChangeLog
gdb/ada-lang.c
gdb/c-lang.c
gdb/f-lang.c
gdb/jv-lang.c
gdb/language.c
gdb/language.h
gdb/m2-lang.c
gdb/objc-lang.c
gdb/p-lang.c
gdb/scm-lang.c

index 8ad0bc06c12ca5e45ae651cff33e9542d598b3b0..1afa47e2909dffa4665faa84a6e8f74ae2787c0b 100644 (file)
@@ -1,3 +1,22 @@
+2003-10-06  J. Brobecker  <brobecker@gnat.com>
+
+       * 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  <cagney@redhat.com>
 
        * ppc-sysv-tdep.c: Re-indent.
index 7244ca29ae43b30f7046e9ca14b9b0035238720f..dabad571db7908e7714897644b8a1f0425187da3 100644 (file)
@@ -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
 };
 
index f5a87a473b4a961ee9604fbc025fe0ab0aaad8e1..a296d8193b48548393abc8de35637eb4acdaf2ce 100644 (file)
@@ -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
 };
 
index f84e0505fe8a784b7ec9abd387819f5240b2d16b..c6c482abe8f4138616071abf24eb726336f6b978 100644 (file)
@@ -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
 };
 
index 0913aceb8ac7f3e12ba1a356a1f036bcd5511309..0d4d6bb705d20ff0df9be347d915390f8ee69e04 100644 (file)
@@ -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
 };
 
index 6cb2c383616c9a4f77c8ed317e5c0d479099c0f1..de7b491cb26930a9ad5d861b840475ade5f11211 100644 (file)
@@ -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
 };
 \f
index 6d039c762bb812441f2c7cd2772d1e10826e31d4..7470167f117b191469ad86af669a7aca08888386 100644 (file)
@@ -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 */
 
index f0679070ff4c02724e4d8fe7ccb4bd3fc151ab0d..7fe2e34e6d67ecb82fe81f49b543e618d6555071 100644 (file)
@@ -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
 };
 
index 7c74e6daf3897076d647767e27da2e9605026695..c65561689a2ad506315f19bee3d56fd9ac1b1d6f 100644 (file)
@@ -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
 };
 
index a12f7ec78a01f41a427ca41a0a5b102bb9c69366..3ebb433d1a5822ab724baad08739160a6639ebb5 100644 (file)
@@ -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
 };
 
index b02fd6fa2bd20e0ec62b5bcfaaf6260e8140d775..7e2ad8fac6f5cae30f3228501e7a014b022cbb84 100644 (file)
@@ -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
 };