X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=scripts%2Fremote-gdb;h=aad23e3246ad6feb441c9ecbb593f36899f7a1cb;hb=920b7c5334b0064e4cf2e3007fda5450c7b6249b;hp=95529fc84c4992563843162f9a12eccb8aa50887;hpb=ad903bf464948e03c76b4145c99f9f2bb6e9c06a;p=openwrt.git diff --git a/scripts/remote-gdb b/scripts/remote-gdb index 95529fc84c..aad23e3246 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);