]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
include, libctf: improve ECTF_DUPLICATE error message
authorNick Alcock <nick.alcock@oracle.com>
Fri, 26 Jul 2024 20:20:50 +0000 (21:20 +0100)
committerNick Alcock <nick.alcock@oracle.com>
Wed, 31 Jul 2024 20:02:05 +0000 (21:02 +0100)
It applies to enums now, so it should mention them.

include/
* ctf-api.h (_CTF_ERRORS) ECTF_DUPLICATE]: Mention enums.

include/ctf-api.h

index ad5add237063e36d938b5910cbd929825e9dba8b..d3d8dbfacf5798c135b4c9e71b307eee7c346ed0 100644 (file)
@@ -225,7 +225,7 @@ typedef struct ctf_snapshot_id
   _CTF_ITEM (ECTF_RDONLY, "CTF container is read-only.") \
   _CTF_ITEM (ECTF_DTFULL, "CTF type is full (no more members allowed).") \
   _CTF_ITEM (ECTF_FULL, "CTF container is full.") \
-  _CTF_ITEM (ECTF_DUPLICATE, "Duplicate member or variable name.") \
+  _CTF_ITEM (ECTF_DUPLICATE, "Duplicate member, enumerator, or variable name.") \
   _CTF_ITEM (ECTF_CONFLICT, "Conflicting type is already defined.") \
   _CTF_ITEM (ECTF_OVERROLLBACK, "Attempt to roll back past a ctf_update.") \
   _CTF_ITEM (ECTF_COMPRESS, "Failed to compress CTF data.") \