GDB can look for debuginfo by build-id, i.e., not by flatpack package name or rpm name or whatever, but by the actual unique id of the binary. If that binary came from any one of the mainstream distros’ build systems (e.g., a repackaged fedora or ubuntu binary), then GDB can fetch debuginfo automatically for them. You might need something like