[tools] revert r24851, it breaks compilation on many hosts
[openwrt.git] / scripts / remote-gdb
index 95529fc..aad23e3 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);
This page took 0.022381 seconds and 4 git commands to generate.