From: jow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Date: Wed, 24 Feb 2010 22:56:36 +0000 (+0000)
Subject: [scripts] remote-gdb: add build_dir/target-*/debug-* to solib-search-path
X-Git-Url: https://git.rohieb.name/openwrt.git/commitdiff_plain/a882dabf29f6eeff2f61496a4eec09d09301ce7a

[scripts] remote-gdb: add build_dir/target-*/debug-* to solib-search-path


git-svn-id: svn://svn.openwrt.org/openwrt/trunk@19845 3c298f89-4303-0410-b956-a3cf2f4a3e73
---

diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 869fa875a..dd05551c6 100755
--- a/scripts/remote-gdb
+++ b/scripts/remote-gdb
@@ -53,6 +53,7 @@ if( opendir SD, "$Bin/../staging_dir" )
 
 		# Find library paths
 		my $libdirs = join ':', (
+			glob("$Bin/../build_dir/target-${arch}_${libc}/debug-*/{usr/,}lib/"),
 			glob("$Bin/../staging_dir/target-${arch}_${libc}/{usr/,}lib"),
 			glob("$Bin/../staging_dir/toolchain-${arch}_*_${libc}/lib")
 		);