From the gdb user's point of view, a bug is a bug. A gdb user can do
the same thing as the test suite and then file a PR: 'gdb fails to
print 'const' for const types'.
I'm not sure I agree with this. My point of view was that either it's
an expected bug (environment) or it is a "known bug in the tool being
tested". I don't like calling environment bugs KFAILs. Do that, and
we'll just end up with no XFAILs...
Associating a PR with them is a different issue. Just because we
associate a PR doesn't mean we have to use KFAIL.
That is correct. The last argument of a setup_xfail, if it does not contain '-'
(Argh! Don't blame me, it was already there since immemorial times) is the PR
number. It can easily be a gdb/NNN bug id. We cannot enforce the syntax, but
we can enforce it as a police.