binutils-gdb/gdb/unittests
John Baldwin efac4bfe0b Add a new function child_path.
child_path returns a pointer to the first component in a child path
that comes after a parent path.  This does not depend on trying to
stat() the paths since they may describe remote paths but instead
relies on filename parsing.  The function requires that the child path
describe a filename that contains at least one component below the
parent path and returns a pointer to the first component.

gdb/ChangeLog:

	* Makefile.in (SUBDIR_UNITTESTS_SRCS): Add
	unittests/child-path-selftests.c.
	* common/pathstuff.c (child_path): New function.
	* common/pathstuff.h (child_path): New prototype.
	* unittests/child-path-selftests.c: New file.
2019-02-12 13:56:16 -08:00
..
basic_string_view Fix year range in unittests/.../char/empty.cc copyright header 2019-01-02 10:11:41 +04:00
optional Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
array-view-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
child-path-selftests.c Add a new function child_path. 2019-02-12 13:56:16 -08:00
cli-utils-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
common-utils-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
copy_bitwise-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
environ-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
format_pieces-selftests.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
function-view-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
lookup_name_info-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
memory-map-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
memrange-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
mkdir-recursive-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
observable-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
offset-type-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
optional-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
parse-connection-spec-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
ptid-selftests.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
rsp-low-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
scoped_fd-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
scoped_mmap-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
scoped_restore-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
string_view-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
style-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
tracepoint-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
unpack-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
utils-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00
xml-utils-selftests.c Normalize includes to use common/ 2019-01-25 15:28:16 -07:00