X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/cfceed17c545a2364fa7e48a40b1de43a7976317..86fe3dcbb2661f2f28858c1223ce65e20c3154ac:/scripts/remote-gdb diff --git a/scripts/remote-gdb b/scripts/remote-gdb index 869fa875a..9701b31c1 100755 --- a/scripts/remote-gdb +++ b/scripts/remote-gdb @@ -53,8 +53,9 @@ if( opendir SD, "$Bin/../staging_dir" ) # Find library paths my $libdirs = join ':', ( - 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";