From: Jo-Philipp Wich Date: Tue, 12 Oct 2010 03:07:07 +0000 (+0000) Subject: [scripts] remote-gdb: fix parsing of arch and libc from given path as well X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=659d4a10cda708f888165df88a426ab59558f49f;ds=sidebyside [scripts] remote-gdb: fix parsing of arch and libc from given path as well SVN-Revision: 23407 --- 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);