From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13674 invoked by alias); 27 Jun 2013 04:05:24 -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 13655 invoked by uid 89); 27 Jun 2013 04:05:22 -0000 X-Spam-SWARE-Status: No, score=-3.1 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-oa0-f48.google.com (HELO mail-oa0-f48.google.com) (209.85.219.48) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 27 Jun 2013 04:05:21 +0000 Received: by mail-oa0-f48.google.com with SMTP id f4so270330oah.7 for ; Wed, 26 Jun 2013 21:05:19 -0700 (PDT) X-Received: by 10.182.39.168 with SMTP id q8mr3269885obk.72.1372305919759; Wed, 26 Jun 2013 21:05:19 -0700 (PDT) MIME-Version: 1.0 Received: by 10.60.116.101 with HTTP; Wed, 26 Jun 2013 21:04:38 -0700 (PDT) In-Reply-To: <51CAD2A7.6020402@gmail.com> References: <51CACF09.2040804@mentor.com> <51CAD2A7.6020402@gmail.com> From: Hui Zhu Date: Thu, 27 Jun 2013 07:28:00 -0000 Message-ID: Subject: Re: [PATCH] testsuite: let GDB add a dir to autoload safe-path To: Pedro Alves Cc: Hui Zhu , gdb-patches ml Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-06/txt/msg00804.txt.bz2 On Wed, Jun 26, 2013 at 7:38 PM, Pedro Alves wrote: > 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 Thanks for your help, Pedro. It is OK in my part now. Best, Hui > > -- > Pedro Alves >