From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10871 invoked by alias); 26 Jun 2013 11:23:08 -0000 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 Received: (qmail 10854 invoked by uid 89); 26 Jun 2013 11:23:06 -0000 X-Spam-SWARE-Status: No, score=-3.7 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 26 Jun 2013 11:23:05 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1UrnoV-0005Kg-N6 from Hui_Zhu@mentor.com for gdb-patches@sourceware.org; Wed, 26 Jun 2013 04:23:03 -0700 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 26 Jun 2013 04:23:03 -0700 Received: from [127.0.0.1] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.2.247.3; Wed, 26 Jun 2013 04:23:02 -0700 Message-ID: <51CACF09.2040804@mentor.com> Date: Wed, 26 Jun 2013 11:28:00 -0000 From: Hui Zhu User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:22.0) Gecko/20100101 Thunderbird/22.0 MIME-Version: 1.0 To: gdb-patches ml Subject: [PATCH] testsuite: let GDB add a dir to autoload safe-path Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00766.txt.bz2 Hi, When I use our test environment with GDB test threads, I got some fails because my libthread_db is not in $sdir but in $pdir. But GDB will check saft-path before load libthread_db in $pdir. So I make a patch to update runto to let it add a dir to safe-path if board file set safe_path. Then for some special test environment, they can add a dir to auto load safe-path if they need. Please help me review it. Thanks, Hui 2013-06-27 Hui Zhu * lib/gdb.exp(runto): Call add-auto-load-safe-path. --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -469,6 +469,10 @@ proc runto { function args } { return 0 } + if { [target_info exists safe_path] } { + gdb_test "add-auto-load-safe-path [target_info safe_path]" + } + gdb_run_cmd # the "at foo.c:36" output we get with -g.