aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2019-02-12 13:56:16 -0800
committerJohn Baldwin <jhb@FreeBSD.org>2019-02-12 13:56:16 -0800
commitefac4bfe0b2bdd21a27c94ca3464046e9c23f0e4 (patch)
tree85e22a71d2b6e613641f3351792d38f69d4ca847 /gdb/ChangeLog
parent402d2bfec425f29c5b54089d5ff98ca9a1b8ec27 (diff)
downloadfsf-binutils-gdb-efac4bfe0b2bdd21a27c94ca3464046e9c23f0e4.zip
fsf-binutils-gdb-efac4bfe0b2bdd21a27c94ca3464046e9c23f0e4.tar.gz
fsf-binutils-gdb-efac4bfe0b2bdd21a27c94ca3464046e9c23f0e4.tar.bz2
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.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e4f74cd..2357a40 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,13 @@
2019-02-12 John Baldwin <jhb@FreeBSD.org>
+ * 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 John Baldwin <jhb@FreeBSD.org>
+
* symfile.c (find_separate_debug_file): Look for separate debug
files in debug directories under the sysroot.