[binutils-gdb] libctf: remove outdated comment about parent dict importing
Nick Alcock
nix@sourceware.org
Tue Jan 5 15:02:51 GMT 2021
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8769046e5a9bb4b0d2a37e501def26941a8c710a
commit 8769046e5a9bb4b0d2a37e501def26941a8c710a
Author: Nick Alcock <nick.alcock@oracle.com>
Date: Tue Jan 5 13:25:56 2021 +0000
libctf: remove outdated comment about parent dict importing
Parent dicts are nowadays imported automatically in most situations, so
the comment in ctf_archive_iter warning people that they need to import
parents by hand is wrong. Remove it.
libctf/ChangeLog
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* ctf-archive.c (ctf_archive_iter): Remove outdated comment.
Diff:
---
libctf/ChangeLog | 4 ++++
libctf/ctf-archive.c | 4 +---
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/libctf/ChangeLog b/libctf/ChangeLog
index 57507c4ba3f..b5a89b1a75c 100644
--- a/libctf/ChangeLog
+++ b/libctf/ChangeLog
@@ -1,3 +1,7 @@
+2021-01-05 Nick Alcock <nick.alcock@oracle.com>
+
+ * ctf-archive.c (ctf_archive_iter): Remove outdated comment.
+
2021-01-05 Nick Alcock <nick.alcock@oracle.com>
* ctf-impl.h (struct ctf_next) <u.ctn_next>: Move to...
diff --git a/libctf/ctf-archive.c b/libctf/ctf-archive.c
index d8c4845b643..193fc4df574 100644
--- a/libctf/ctf-archive.c
+++ b/libctf/ctf-archive.c
@@ -1021,9 +1021,7 @@ ctf_archive_iter (const ctf_archive_t *arc, ctf_archive_member_f *func,
/* Iterate over all CTF files in an archive, returning each dict in turn as a
ctf_dict_t, and NULL on error or end of iteration. It is the caller's
- responsibility to close it. Parent dicts may be skipped. Regardless of
- whether they are skipped or not, the caller must ctf_import the parent if
- need be.
+ responsibility to close it. Parent dicts may be skipped.
The archive member is cached for rapid return on future calls.
More information about the Binutils-cvs
mailing list