* language.h (default_word_break_characters): Add prototype.
authorJoel Brobecker <brobecker@gnat.com>
Mon, 6 Oct 2003 22:21:52 +0000 (22:21 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Mon, 6 Oct 2003 22:21:52 +0000 (22:21 +0000)
        * language.c (default_word_break_characters): New function.

gdb/ChangeLog
gdb/language.c
gdb/language.h

index 31413dd30b5414448715c4424665c7822b350f72..f75e9abb4c8ae24e271b1c59f57cb210e43de725 100644 (file)
@@ -1,3 +1,8 @@
+2003-10-06  J. Brobecker  <brobecker@gnat.com>
+
+       * language.h (default_word_break_characters): Add prototype.
+       * language.c (default_word_break_characters): New function.
+
 2003-10-06  Andreas Schwab  <schwab@suse.de>
 
        * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
index 28cdd27a24d7384240022e2d4e2db404d98f4f15..6cb2c383616c9a4f77c8ed317e5c0d479099c0f1 100644 (file)
@@ -1176,6 +1176,15 @@ language_demangle (const struct language_defn *current_language,
   return NULL;
 }
 
+/* Return the default string containing the list of characters
+   delimiting words.  This is a reasonable default value that
+   most languages should be able to use.  */
+
+char *
+default_word_break_characters (void)
+{
+  return " \t\n!@#$%^&*()+=|~`}{[]\"';:?/>.<,-";
+}
 
 /* Define the language that is no language.  */
 
index baa49ec6fa467cad24b65869774e9c7a65fe72f8..6d039c762bb812441f2c7cd2772d1e10826e31d4 100644 (file)
@@ -502,4 +502,7 @@ extern CORE_ADDR skip_language_trampoline (CORE_ADDR pc);
 extern char *language_demangle (const struct language_defn *current_language, 
                                const char *mangled, int options);
 
+/* Splitting strings into words.  */
+extern char *default_word_break_characters (void);
+
 #endif /* defined (LANGUAGE_H) */