aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/remote-gdb
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/remote-gdb')
-rwxr-xr-xscripts/remote-gdb2
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);