From 9f0a53037df018a34475d85affc1b575211781f3 Mon Sep 17 00:00:00 2001 From: Joel Brobecker Date: Mon, 6 Oct 2003 22:21:52 +0000 Subject: * language.h (default_word_break_characters): Add prototype. * language.c (default_word_break_characters): New function. --- gdb/ChangeLog | 5 +++++ gdb/language.c | 9 +++++++++ gdb/language.h | 3 +++ 3 files changed, 17 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 31413dd..f75e9ab 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-10-06 J. Brobecker + + * language.h (default_word_break_characters): Add prototype. + * language.c (default_word_break_characters): New function. + 2003-10-06 Andreas Schwab * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl 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. */ diff --git a/gdb/language.h b/gdb/language.h index baa49ec..6d039c7 100644 --- a/gdb/language.h +++ b/gdb/language.h @@ -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) */ -- cgit v1.1