please add support to build with babeltrace2 https://packages.debian.org/sid/amd64/libbabeltrace2-dev/filelist babeltrace2 comes with different include paths and a different pkgconfig file.
Technically, I don't think there would be a problem in migrating to Babeltrace 2. But as much as I'd like to see Babeltrace 2 getting used (I contribute to it and it's a project essentially driven by my company), we should consider just removing the CTF (Common Trace Format, no Compact C Type Format) support in GDB. GDB tracepoints are already not so widely used, and saving trace data in CTF is a niche use case within that. I'll ask on the gdb@ mailing list, see if anyone still cares today. If you read this and you do care, please say so, so we know it's worth keeping the feature.