mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-23 22:05:20 +02:00
[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
This commit is contained in:
parent
ad903bf464
commit
2904117c6d
@ -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