mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-20 22:23:27 +00:00
remote-gdb: fix parsing of arch and libc from given path as well
SVN-Revision: 23407
This commit is contained in:
parent
9d50430238
commit
04c4b01fb4
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user