From: Joel Brobecker Date: Mon, 6 Oct 2003 22:21:52 +0000 (+0000) Subject: * language.h (default_word_break_characters): Add prototype. X-Git-Tag: cagney_bigcore-20040122-branchpoint~1304 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9f0a53037df018a34475d85affc1b575211781f3;p=external%2Fbinutils.git * language.h (default_word_break_characters): Add prototype. * language.c (default_word_break_characters): New function. --- 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) */