remote-gdb: add build_dir/target-*/debug-* to solib-search-path
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Feb 2010 22:56:36 +0000 (22:56 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Feb 2010 22:56:36 +0000 (22:56 +0000)
SVN-Revision: 19845

scripts/remote-gdb

index 869fa875a0d40bce531eeec5ff098376638191df..dd05551c6adc5b4c2c710ffa05c55a0931bed585 100755 (executable)
@@ -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")
                );