git: 40371e514185 - main - ctfconvert: Make the absence of debug info non-fatal
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 06 Nov 2026 20:03:29 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=40371e514185247d7416d4e4e981d4c71c7b6ba1
commit 40371e514185247d7416d4e4e981d4c71c7b6ba1
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2026-11-05 18:30:48 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2026-11-06 16:59:43 +0000
ctfconvert: Make the absence of debug info non-fatal
When compiled with gcc14, subr_ticks.o legitimately doesn't contain any
DWARF sections. Just emit a warning in this case. In general we still
want to run ctfconvert on asm files.
Reviewed by: emaste, des
Fixes: e959f2a7d8a8 ("ctf*: exit with error upon terminate()")
Differential Revision: https://reviews.freebsd.org/D61231
---
cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c b/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c
index 68969356e75e..59c3683fa351 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/ctfconvert.c
@@ -230,8 +230,13 @@ main(int argc, char **argv)
filetd = tdata_new();
- if (!file_read(filetd, infile, ignore_non_c))
- terminate("%s doesn't have type data to convert\n", infile);
+ /*
+ * asm files may legitimately not have debug info.
+ */
+ if (!file_read(filetd, infile, ignore_non_c)) {
+ warning("%s doesn't have type data to convert\n", infile);
+ exit(0);
+ }
if (verbose)
iidesc_stats(filetd->td_iihash);