binutils-gdb/gdb/common
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
..
agent.c
agent.h
array-view.h
ax.def
break-common.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
btrace-common.c
btrace-common.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
buffer.c
buffer.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
byte-vector.h
cleanups.c
cleanups.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-debug.c
common-debug.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-defs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-exceptions.c
common-exceptions.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-gdbthread.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-inferior.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-regcache.c
common-regcache.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-types.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common-utils.c
common-utils.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
common.host
common.m4
create-version.sh Update create-version.sh to use common/version.h 2019-01-25 15:28:16 -07:00
def-vector.h
default-init-alloc.h
enum-flags.h
environ.c
environ.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
errors.c
errors.h
fileio.c
fileio.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
filestuff.c
filestuff.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
filtered-iterator.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
format.c
format.h
forward-scope-exit.h Fix clang/libc++ build 2019-01-24 18:01:49 +00:00
function-view.h
gdb_assert.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_locale.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_optional.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_proc_service.h
gdb_ref_ptr.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_setjmp.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_signals.h
gdb_splay_tree.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_string_view.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_string_view.tcc
gdb_sys_time.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_tilde_expand.c
gdb_tilde_expand.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_unique_ptr.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_unlinker.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_vecs.c
gdb_vecs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
gdb_wait.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
hash_enum.h
host-defs.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
job-control.c
job-control.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
mingw-strerror.c
netstuff.c
netstuff.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
new-op.c
next-iterator.h
observable.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
offset-type.h
pathstuff.c Add a new function child_path. 2019-02-12 13:56:16 -08:00
pathstuff.h Add a new function child_path. 2019-02-12 13:56:16 -08:00
poison.h
posix-strerror.c
preprocessor.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
print-utils.c
print-utils.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
ptid.c
ptid.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
queue.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
refcounted-object.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
rsp-low.c
rsp-low.h
run-time-clock.c
run-time-clock.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
safe-iterator.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
scope-exit.h
scoped_fd.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
scoped_mmap.c
scoped_mmap.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
scoped_restore.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
selftest.c
selftest.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
signals-state-save-restore.c
signals-state-save-restore.h
signals.c
symbol.h
tdesc.c
tdesc.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
traits.h
underlying.h
valid-expr.h
vec.c
vec.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
version.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
x86-xstate.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
xml-utils.c
xml-utils.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00