diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-12 03:07:07 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-10-12 03:07:07 +0000 |
commit | 76b017e355ba10c17a2dde32037d134f18a7c732 (patch) | |
tree | 5168da5d18c753f8de65c15327414a36d159a49c /scripts/remote-gdb | |
parent | 461f29cb461fe6300032834d6a4ab0b8e2751746 (diff) | |
download | master-187ad058-76b017e355ba10c17a2dde32037d134f18a7c732.tar.gz master-187ad058-76b017e355ba10c17a2dde32037d134f18a7c732.tar.bz2 master-187ad058-76b017e355ba10c17a2dde32037d134f18a7c732.zip |
[scripts] remote-gdb: fix parsing of arch and libc from given path as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23407 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/remote-gdb')
-rwxr-xr-x | scripts/remote-gdb | 2 |
1 files changed, 1 insertions, 1 deletions
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); |