Recent babeltrace (1.1.2 and later) complains about the ctf data generated by GDB:
(gdb) target ctf .../gdb/testsuite/gdb.trace/actions.ctf
[error] Invalid CTF stream: content size is smaller than packet headers.
[error] Stream index creation error.
[error] Open file stream error.
This is caused by a workaround we added for babeltrace 1.1.0. Since babeltrace 1.1.2 was released for some times, we remove the workaround in GDB and users can build GDB with 1.1.2 or later.
This patch https://sourceware.org/ml/gdb-patches/2014-08/msg00460.html is committed to mainline and 7.8 branch.