diff options
author | Guinevere Larsen <blarsen@redhat.com> | 2024-07-31 11:23:51 -0300 |
---|---|---|
committer | Guinevere Larsen <blarsen@redhat.com> | 2024-08-02 09:06:26 -0300 |
commit | 853d02bc0701a789ffcad0e429c0f36319852857 (patch) | |
tree | e92e86ed2d510db8cd979b63ad1ba3edd7a83cb4 /gdb/testsuite/gdb.python/py-missing-debug.exp | |
parent | 4a9843c301e5453ae21639e500b9b2bd62ff1e69 (diff) | |
download | binutils-853d02bc0701a789ffcad0e429c0f36319852857.zip binutils-853d02bc0701a789ffcad0e429c0f36319852857.tar.gz binutils-853d02bc0701a789ffcad0e429c0f36319852857.tar.bz2 |
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>
Diffstat (limited to 'gdb/testsuite/gdb.python/py-missing-debug.exp')
-rw-r--r-- | gdb/testsuite/gdb.python/py-missing-debug.exp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.python/py-missing-debug.exp b/gdb/testsuite/gdb.python/py-missing-debug.exp index d1eef34..dfc0a46 100644 --- a/gdb/testsuite/gdb.python/py-missing-debug.exp +++ b/gdb/testsuite/gdb.python/py-missing-debug.exp @@ -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 } |