Fix gdb.cp/step-and-next-inline.exp with Clang
authorGary Benson <gbenson@redhat.com>
Tue, 10 Nov 2020 16:07:36 +0000 (16:07 +0000)
committerGary Benson <gbenson@redhat.com>
Tue, 10 Nov 2020 16:07:36 +0000 (16:07 +0000)
commiteb24648c453c28f2898fb599311ba004394a8b41
treea19c2c9d7bdf9221f07702c6f2a678e12c9e4adb
parent1f57314183549008c065ad2240598d2b0f0ff56b
Fix gdb.cp/step-and-next-inline.exp with Clang

Clang fails to compile gdb.cp/step-and-next-inline.cc, with the
following error:

  clang-12: error: unknown argument: '-gstatement-frontiers'
  compiler exited with status 1

This commit fixes the testcase by only passing -gstatement-frontiers
when building with GCC.  This commit also alters two checks marked as
known failures, to mark them as known failures only when built using
GCC.

gdb/testsuite/ChangeLog:

* gdb.cp/step-and-next-inline.exp: Only require
-gstatement-frontiers when building with GCC.
Only setup KFAIL's for GCC issues when using
a GCC-built executable.
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/step-and-next-inline.exp