This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] testsuite: let GDB add a dir to autoload safe-path
- From: Hui Zhu <teawater at gmail dot com>
- To: Pedro Alves <alves dot ped at gmail dot com>
- Cc: Hui Zhu <hui_zhu at mentor dot com>, gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Thu, 27 Jun 2013 12:04:38 +0800
- Subject: Re: [PATCH] testsuite: let GDB add a dir to autoload safe-path
- References: <51CACF09 dot 2040804 at mentor dot com> <51CAD2A7 dot 6020402 at gmail dot com>
On Wed, Jun 26, 2013 at 7:38 PM, Pedro Alves <alves.ped@gmail.com> 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
>