From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17756 invoked by alias); 26 Jun 2013 11:38:27 -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 17730 invoked by uid 89); 26 Jun 2013 11:38:21 -0000 X-Spam-SWARE-Status: No, score=-3.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ea0-f175.google.com (HELO mail-ea0-f175.google.com) (209.85.215.175) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 26 Jun 2013 11:38:20 +0000 Received: by mail-ea0-f175.google.com with SMTP id z7so7346004eaf.6 for ; Wed, 26 Jun 2013 04:38:18 -0700 (PDT) X-Received: by 10.14.122.201 with SMTP id t49mr3773713eeh.26.1372246698289; Wed, 26 Jun 2013 04:38:18 -0700 (PDT) Received: from [192.168.0.105] (bl16-227-140.dsl.telepac.pt. [188.81.227.140]) by mx.google.com with ESMTPSA id n5sm42342169eed.9.2013.06.26.04.38.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 26 Jun 2013 04:38:17 -0700 (PDT) Message-ID: <51CAD2A7.6020402@gmail.com> Date: Wed, 26 Jun 2013 11:53:00 -0000 From: Pedro Alves User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: Hui Zhu CC: gdb-patches ml Subject: Re: [PATCH] testsuite: let GDB add a dir to autoload safe-path References: <51CACF09.2040804@mentor.com> In-Reply-To: <51CACF09.2040804@mentor.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SW-Source: 2013-06/txt/msg00768.txt.bz2 On 06/26/2013 12:22 PM, Hui Zhu wrote: > 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. You can just put in your board file: set GDBFLAGS "-ex \"add-auto-load-safe-path /wherever\"" http://sourceware.org/gdb/wiki/TestingGDB#Passing_an_option_to_GDB_.2BAC8_Running_the_whole_test_suite_in_a_non-default_mode -- Pedro Alves