diff options
Diffstat (limited to 'gdb/utils.h')
-rw-r--r-- | gdb/utils.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gdb/utils.h b/gdb/utils.h index f138702b3a4..d32114edb6e 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -132,8 +132,13 @@ extern char *gdb_abspath (const char *); extern int gdb_filename_fnmatch (const char *pattern, const char *string, int flags); -extern void substitute_path_component (char **stringp, const char *from, - const char *to); +/* Substitute all occurences of string FROM by string TO in STR. FROM + needs to be delimited by IS_DIR_SEPARATOR or DIRNAME_SEPARATOR (or be + located at the start or end of STR). */ + +extern void substitute_path_component (std::string &str, + const std::string &from, + const std::string &to); char *ldirname (const char *filename); |