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: Pedro Alves <alves dot ped at gmail dot com>
- To: Hui Zhu <hui_zhu at mentor dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Wed, 26 Jun 2013 12:38:15 +0100
- Subject: Re: [PATCH] testsuite: let GDB add a dir to autoload safe-path
- References: <51CACF09 dot 2040804 at mentor dot com>
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