From 596ba13831fea861c6d1d02adea87e67bdde0e4a Mon Sep 17 00:00:00 2001 From: Jan Kratochvil Date: Fri, 24 Feb 2012 00:05:56 +0000 Subject: [PATCH] gdb/testsuite/ Fix false FAILs with glibc debug infos installed. * gdb.reverse/solib-precsave.exp (set debug-file-directory): New test. * gdb.reverse/solib-reverse.exp (set debug-file-directory): New test. --- gdb/testsuite/ChangeLog | 6 ++++++ gdb/testsuite/gdb.reverse/solib-precsave.exp | 4 ++++ gdb/testsuite/gdb.reverse/solib-reverse.exp | 4 ++++ 3 files changed, 14 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index ab3518ada6..57e3030cb9 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2012-02-24 Jan Kratochvil + + Fix false FAILs with glibc debug infos installed. + * gdb.reverse/solib-precsave.exp (set debug-file-directory): New test. + * gdb.reverse/solib-reverse.exp (set debug-file-directory): New test. + 2012-02-22 Sterling Augustine * gdb.base/watchpoint.exp (test_constant_watchpoint): Add test for diff --git a/gdb/testsuite/gdb.reverse/solib-precsave.exp b/gdb/testsuite/gdb.reverse/solib-precsave.exp index 4082672fb9..15da802587 100644 --- a/gdb/testsuite/gdb.reverse/solib-precsave.exp +++ b/gdb/testsuite/gdb.reverse/solib-precsave.exp @@ -48,6 +48,10 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt gdb_exit gdb_start + +# Clear it to never find any separate system debug infos. +gdb_test_no_output "set debug-file-directory" + gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} diff --git a/gdb/testsuite/gdb.reverse/solib-reverse.exp b/gdb/testsuite/gdb.reverse/solib-reverse.exp index 8d000f30c2..7d90ccce98 100644 --- a/gdb/testsuite/gdb.reverse/solib-reverse.exp +++ b/gdb/testsuite/gdb.reverse/solib-reverse.exp @@ -47,6 +47,10 @@ if { [gdb_compile ${srcdir}/${subdir}/${srcfile} ${binfile} executable $exec_opt gdb_exit gdb_start + +# Clear it to never find any separate system debug infos. +gdb_test_no_output "set debug-file-directory" + gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile}