summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2010-10-12 03:07:07 +0000
committerJo-Philipp Wich <jow@openwrt.org>2010-10-12 03:07:07 +0000
commit04c4b01fb4540672f524814bf13328501cf289df (patch)
tree54a5954c7825b4964d959f2b2f3672fd09f98cab /scripts
parent9d50430238ad8d31f517e4e7269726fad4cec37c (diff)
downloadmtk-20170518-04c4b01fb4540672f524814bf13328501cf289df.zip
mtk-20170518-04c4b01fb4540672f524814bf13328501cf289df.tar.gz
mtk-20170518-04c4b01fb4540672f524814bf13328501cf289df.tar.bz2
remote-gdb: fix parsing of arch and libc from given path as well
SVN-Revision: 23407
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/remote-gdb2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 95529fc..aad23e3 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);