From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13002 invoked by alias); 5 Mar 2012 20:57:25 -0000 Received: (qmail 12988 invoked by uid 22791); 5 Mar 2012 20:57:24 -0000 X-SWARE-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 05 Mar 2012 20:57:09 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q25KulFI023231 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 5 Mar 2012 15:56:47 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q25KukDE017516 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 5 Mar 2012 15:56:47 -0500 From: Tom Tromey To: gdb-patches@sourceware.org Subject: RFA: two Ada tests -vs- debug-file-directory CC: Joel Brobecker Date: Mon, 05 Mar 2012 20:57:00 -0000 Message-ID: <87y5revka9.fsf@fleche.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.94 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-03/txt/msg00161.txt.bz2 I was seeing test regressions in some Ada tests and tracked it down to the fact that one tree was build with the correct system debug-file-directory setting, and one was built with a different setting. I have all the GCC debuginfo installed on this machine, but the apparently-failing Ada tests are not prepared to see this. The appended handles the problem by ensuring that gdb doesn't see the system debuginfo during the tests in question. Ok? Tom 2012-03-05 Tom Tromey * gdb.ada/operator_bp.exp: Clear debug-file-directory. * gdb.ada/mi_task_arg.exp: Clear debug-file-directory. diff --git a/gdb/testsuite/gdb.ada/mi_task_arg.exp b/gdb/testsuite/gdb.ada/mi_task_arg.exp index a8cc59b..0b2013c 100644 --- a/gdb/testsuite/gdb.ada/mi_task_arg.exp +++ b/gdb/testsuite/gdb.ada/mi_task_arg.exp @@ -37,6 +37,9 @@ mi_delete_breakpoints mi_gdb_reinitialize_dir $srcdir/$subdir mi_gdb_load ${binfile} +# This test won't work properly if system debuginfo is installed. +mi_gdb_test "-gdb-set debug-file-directory \"\"" ".*" + if ![mi_runto "task_switch.break_me"] then { fail "Cannot run to main, testcase aborted" return 0 diff --git a/gdb/testsuite/gdb.ada/operator_bp.exp b/gdb/testsuite/gdb.ada/operator_bp.exp index 2be7e0a..18cf46d 100644 --- a/gdb/testsuite/gdb.ada/operator_bp.exp +++ b/gdb/testsuite/gdb.ada/operator_bp.exp @@ -29,6 +29,9 @@ if {[gdb_compile_ada "${srcfile}" "${binfile}" executable {debug}] != ""} { clean_restart ${testfile} +# This test won't work properly if system debuginfo is installed. +gdb_test_no_output "set debug-file-directory" + set bp_location [gdb_get_line_number "BEGIN" ${testdir}/ops_test.adb] runto "ops_test.adb:$bp_location"