* [binutils-gdb] libctf: improve ECTF_NOPARENT error message
@ 2024-07-31 20:44 Nick Alcock
0 siblings, 0 replies; only message in thread
From: Nick Alcock @ 2024-07-31 20:44 UTC (permalink / raw)
To: binutils-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5f1077e69e4c9d85e0988079aeabc2fb7dae361a
commit 5f1077e69e4c9d85e0988079aeabc2fb7dae361a
Author: Nick Alcock <nick.alcock@oracle.com>
Date: Mon Jul 15 19:59:13 2024 +0100
libctf: improve ECTF_NOPARENT error message
This erorr doesn't just indicate that there is no parent dictionary
(that's routine, and true of all dicts that are parents themselves)
but that a parent is *needed* but wasn't found.
include/
* ctf-api.h (_CTF_ERRORS) [ECTF_NOPARENT]: Improve error message.
ld/
* testsuite/ld-ctf/diag-parname.d: Adjust.
Diff:
---
include/ctf-api.h | 2 +-
ld/testsuite/ld-ctf/diag-parname.d | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/ctf-api.h b/include/ctf-api.h
index f1087bc0542..ad5add23706 100644
--- a/include/ctf-api.h
+++ b/include/ctf-api.h
@@ -196,7 +196,7 @@ typedef struct ctf_snapshot_id
_CTF_ITEM (ECTF_NOCTFDATA, "File does not contain CTF data.") \
_CTF_ITEM (ECTF_NOCTFBUF, "Buffer does not contain CTF data.") \
_CTF_ITEM (ECTF_NOSYMTAB, "Symbol table information is not available.") \
- _CTF_ITEM (ECTF_NOPARENT, "The parent CTF dictionary is unavailable.") \
+ _CTF_ITEM (ECTF_NOPARENT, "The parent CTF dictionary is needed but unavailable.") \
_CTF_ITEM (ECTF_DMODEL, "Data model mismatch.") \
_CTF_ITEM (ECTF_LINKADDEDLATE, "File added to link too late.") \
_CTF_ITEM (ECTF_ZALLOC, "Failed to allocate (de)compression buffer.") \
diff --git a/ld/testsuite/ld-ctf/diag-parname.d b/ld/testsuite/ld-ctf/diag-parname.d
index f8fcd683a9d..4672f71ae9b 100644
--- a/ld/testsuite/ld-ctf/diag-parname.d
+++ b/ld/testsuite/ld-ctf/diag-parname.d
@@ -2,4 +2,4 @@
#source: diag-parname.s
#ld: -shared --ctf-variables
#name: Diagnostics - No parent dictionary
-#warning: CTF linking failed; output will have no CTF section: The parent CTF dictionary is unavailable
+#warning: CTF linking failed; output will have no CTF section: The parent CTF dictionary is needed but unavailable
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-07-31 20:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-07-31 20:44 [binutils-gdb] libctf: improve ECTF_NOPARENT error message Nick Alcock
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).