[package] libpcap: explicitely disable libnl support to prevent different build resul...
[openwrt.git] / scripts / remote-gdb
index 95529fc..49cdd1e 100755 (executable)
@@ -14,7 +14,7 @@ if( opendir SD, "$Bin/../staging_dir" )
 {
        my ( $tid, $arch, $libc, @arches );
 
-       if( $ARGV[1] =~ m!\btarget-([^_/]+)_([^_/]+)\b! )
+       if( $ARGV[1] =~ m!\btarget-(.+?)_([^_]+libc[^_/]+)\b!i )
        {
                print("Using target $1 ($2)\n");
                ($arch, $libc) = ($1, $2);
@@ -52,8 +52,7 @@ if( opendir SD, "$Bin/../staging_dir" )
        closedir SD;
 
        # Find gdb
-       my ($gdb) = glob("$Bin/../staging_dir/toolchain-${arch}_*_${libc}/bin/*-gdb");
-
+       my ($gdb) = glob("$Bin/../staging_dir/toolchain-${arch}_*_${libc}*/bin/*-gdb");
        if( defined($gdb) && -x $gdb )
        {
                my ( $fh, $fp ) = tempfile();
This page took 0.022222 seconds and 4 git commands to generate.