This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] testsuite: let GDB add a dir to autoload safe-path
- From: Hui Zhu <hui_zhu at mentor dot com>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Wed, 26 Jun 2013 19:22:49 +0800
- Subject: [PATCH] testsuite: let GDB add a dir to autoload safe-path
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.
Please help me review it.
Thanks,
Hui
2013-06-27 Hui Zhu <hui@codesourcery.com>
* lib/gdb.exp(runto): Call add-auto-load-safe-path.
--- a/gdb/testsuite/lib/gdb.exp
+++ b/gdb/testsuite/lib/gdb.exp
@@ -469,6 +469,10 @@ proc runto { function args } {
return 0
}
+ if { [target_info exists safe_path] } {
+ gdb_test "add-auto-load-safe-path [target_info safe_path]"
+ }
+
gdb_run_cmd
# the "at foo.c:36" output we get with -g.