aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2024-07-15 21:05:43 +0100
committerNick Alcock <nick.alcock@oracle.com>2024-07-29 18:09:36 +0100
commit90f820eaaa8763dfe41f3cbc5cd7594fa354e777 (patch)
tree8f2cdd3b723e0603d7ae5b3765452b0f943242a8
parent70f8928d443932b469c8374835652978b05c336e (diff)
downloadgdb-90f820eaaa8763dfe41f3cbc5cd7594fa354e777.zip
gdb-90f820eaaa8763dfe41f3cbc5cd7594fa354e777.tar.gz
gdb-90f820eaaa8763dfe41f3cbc5cd7594fa354e777.tar.bz2
libctf, open: Fix enum error handling path
This new error-handling path was not properly initializing the fp's errno. libctf/ * ctf-open.c (init_static_types_internal): Set errno properly.
-rw-r--r--libctf/ctf-open.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-open.c b/libctf/ctf-open.c
index fd6d36e..ab97cde 100644
--- a/libctf/ctf-open.c
+++ b/libctf/ctf-open.c
@@ -1066,6 +1066,7 @@ init_static_types_internal (ctf_dict_t *fp, ctf_header_t *cth,
continue;
enum_err:
+ ctf_set_errno (fp, err);
ctf_next_destroy (i_constants);
ctf_next_destroy (i);
return ctf_errno (fp);