mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-30 12:44:10 +08:00
libctf: fix tiny dumping error
Without this, you might get things like this in the output: Flags: 0xa (CTF_F_NEWFUNCINFO, , CTF_F_DYNSTR) Note the spurious comma. libctf/ * ctf-dump.c (ctf_dump_header): Fix comma emission.
This commit is contained in:
parent
483546ce4f
commit
eb244227d8
@ -333,13 +333,12 @@ ctf_dump_header (ctf_dict_t *fp, ctf_dump_state_t *state)
|
||||
? ", " : "",
|
||||
fp->ctf_openflags & CTF_F_NEWFUNCINFO
|
||||
? "CTF_F_NEWFUNCINFO" : "",
|
||||
(fp->ctf_openflags & (CTF_F_COMPRESS | CTF_F_NEWFUNCINFO))
|
||||
(fp->ctf_openflags & (CTF_F_NEWFUNCINFO))
|
||||
&& (fp->ctf_openflags & ~(CTF_F_COMPRESS | CTF_F_NEWFUNCINFO))
|
||||
? ", " : "",
|
||||
fp->ctf_openflags & CTF_F_IDXSORTED
|
||||
? "CTF_F_IDXSORTED" : "",
|
||||
fp->ctf_openflags & (CTF_F_COMPRESS | CTF_F_NEWFUNCINFO
|
||||
| CTF_F_IDXSORTED)
|
||||
fp->ctf_openflags & (CTF_F_IDXSORTED)
|
||||
&& (fp->ctf_openflags & ~(CTF_F_COMPRESS | CTF_F_NEWFUNCINFO
|
||||
| CTF_F_IDXSORTED))
|
||||
? ", " : "",
|
||||
|
Loading…
Reference in New Issue
Block a user