aboutsummaryrefslogtreecommitdiff
path: root/libctf/ctf-create.c
diff options
context:
space:
mode:
authorNick Alcock <nick.alcock@oracle.com>2020-06-02 20:39:15 +0100
committerNick Alcock <nick.alcock@oracle.com>2020-07-22 17:57:29 +0100
commitdd987f004301f6a737fcd431a9ae14d2fc2675bf (patch)
tree5c9ca1320b9bf271d15045e3fb5163ac26490b50 /libctf/ctf-create.c
parentf47ca3113561ba3189b892a1a956ba6bd0fdb773 (diff)
downloadgdb-dd987f004301f6a737fcd431a9ae14d2fc2675bf.zip
gdb-dd987f004301f6a737fcd431a9ae14d2fc2675bf.tar.gz
gdb-dd987f004301f6a737fcd431a9ae14d2fc2675bf.tar.bz2
libctf, create: empty dicts are dirty to start with
Without this, an empty dict that is written out immediately never gets any content at all: even the header is left empty. libctf/ * ctf-create.c (ctf_create): Mark dirty.
Diffstat (limited to 'libctf/ctf-create.c')
-rw-r--r--libctf/ctf-create.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libctf/ctf-create.c b/libctf/ctf-create.c
index 5cbcfe0..1416d18 100644
--- a/libctf/ctf-create.c
+++ b/libctf/ctf-create.c
@@ -126,6 +126,7 @@ ctf_create (int *errp)
fp->ctf_dtoldid = 0;
fp->ctf_snapshots = 1;
fp->ctf_snapshot_lu = 0;
+ fp->ctf_flags |= LCTF_DIRTY;
ctf_set_ctl_hashes (fp);
ctf_setmodel (fp, CTF_MODEL_NATIVE);