aboutsummaryrefslogtreecommitdiff
path: root/gdb/language.c
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-10-06 22:21:52 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-10-06 22:21:52 +0000
commit9f0a53037df018a34475d85affc1b575211781f3 (patch)
tree73703d5c825d3b5b787f897c5f060a13372ccd8c /gdb/language.c
parent7270b6ed5abaabe1977f44eb0489520047b6f8a0 (diff)
downloadgdb-9f0a53037df018a34475d85affc1b575211781f3.zip
gdb-9f0a53037df018a34475d85affc1b575211781f3.tar.gz
gdb-9f0a53037df018a34475d85affc1b575211781f3.tar.bz2
* language.h (default_word_break_characters): Add prototype.
* language.c (default_word_break_characters): New function.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 28cdd27..6cb2c38 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -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. */