diff options
author | Joel Brobecker <brobecker@gnat.com> | 2003-10-06 22:21:52 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2003-10-06 22:21:52 +0000 |
commit | 9f0a53037df018a34475d85affc1b575211781f3 (patch) | |
tree | 73703d5c825d3b5b787f897c5f060a13372ccd8c /gdb | |
parent | 7270b6ed5abaabe1977f44eb0489520047b6f8a0 (diff) | |
download | gdb-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')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/language.c | 9 | ||||
-rw-r--r-- | gdb/language.h | 3 |
3 files changed, 17 insertions, 0 deletions
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 <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 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) */ |