libctf: avoid the need to ever use ctf_update
[deliverable/binutils-gdb.git] / libctf / ctf-archive.c
index 979641cc1e728b76ee0956fa7fd5f9514389905f..ed1483ade75af7a87b24675e18efa1e2c9f70865 100644 (file)
@@ -267,6 +267,9 @@ arc_write_one_ctf (ctf_file_t * f, int fd, size_t threshold)
   size_t ctfsz_len;
   int (*writefn) (ctf_file_t * fp, int fd);
 
+  if (ctf_serialize (f) < 0)
+    return f->ctf_errno * -1;
+
   if ((off = lseek (fd, 0, SEEK_CUR)) < 0)
     return errno * -1;
 
This page took 0.02506 seconds and 4 git commands to generate.