diff options
Diffstat (limited to 'gdb/common/pathstuff.h')
-rw-r--r-- | gdb/common/pathstuff.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/common/pathstuff.h b/gdb/common/pathstuff.h index c264e78..67072a4 100644 --- a/gdb/common/pathstuff.h +++ b/gdb/common/pathstuff.h @@ -48,6 +48,12 @@ extern gdb::unique_xmalloc_ptr<char> extern gdb::unique_xmalloc_ptr<char> gdb_abspath (const char *path); +/* If the path in CHILD is a child of the path in PARENT, return a + pointer to the first component in the CHILD's pathname below the + PARENT. Otherwise, return NULL. */ + +extern const char *child_path (const char *parent, const char *child); + /* Return whether PATH contains a directory separator character. */ extern bool contains_dir_separator (const char *path); |