gdb/testsuite: add build-id compile flag to tests that expect it

Clang doesn't add build-id information by default, unlike gcc. This
means that tests that rely on build-id being available and don't
explicitly add it to the compilation options will fail with clang.
This commit fixes the fails in gdb.python/py-missing-debug.exp,
gdb.server/remote-read-msgs.exp, gdb.base/coredump-filter-build-id.exp
and gdb.server/solib-list.exp

Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
Guinevere Larsen
2024-07-31 11:23:51 -03:00
parent 4a9843c301
commit 853d02bc07
4 changed files with 6 additions and 4 deletions

View File

@@ -19,7 +19,8 @@ require allow_python_tests
standard_testfile
if {[build_executable "failed to prepare" ${testfile} ${srcfile}]} {
if {[build_executable "failed to prepare" ${testfile} ${srcfile} \
{debug build-id}]} {
return -1
}