X-Git-Url: http://git.rohieb.name/openwrt.git/blobdiff_plain/ad903bf464948e03c76b4145c99f9f2bb6e9c06a..198ea09e92556752658bbfffac2b764b6f80959c:/scripts/remote-gdb diff --git a/scripts/remote-gdb b/scripts/remote-gdb index 95529fc84..aad23e324 100755 --- a/scripts/remote-gdb +++ b/scripts/remote-gdb @@ -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);