mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-12-19 01:19:41 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user