remote-gdb: change library paths after r19849, swap usr/lib/ and lib/
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Feb 2010 23:51:50 +0000 (23:51 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 24 Feb 2010 23:51:50 +0000 (23:51 +0000)
SVN-Revision: 19850

scripts/remote-gdb

index dd05551c6adc5b4c2c710ffa05c55a0931bed585..9701b31c152325ac5e659cb3720ac5740fc93a01 100755 (executable)
@@ -53,9 +53,9 @@ 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")
+                       glob("$Bin/../staging_dir/target-${arch}_${libc}/root-*/{,usr/}lib/"),
+                       glob("$Bin/../staging_dir/target-${arch}_${libc}/{,usr/}lib/"),
+                       glob("$Bin/../staging_dir/toolchain-${arch}_*_${libc}/lib/")
                );
 
                print $fh "set solib-search-path $libdirs\n";