This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] testsuite: let GDB add a dir to autoload safe-path


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]