summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/remote-gdb4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/remote-gdb b/scripts/remote-gdb
index 5230663..efb321c 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-(.+?)_(([^/_]+libc|musl)[^/]+)\b!i )
+ if( $ARGV[1] =~ m!\btarget-(.+?)_(([^/_]+libc|musl)[^/_]+)\b!i )
{
print("Using target $1 ($2)\n");
($arch, $libc) = ($1, $2);
@@ -58,7 +58,7 @@ if( opendir SD, "$Bin/../staging_dir" )
my ( $fh, $fp ) = tempfile();
# Find sysroot
- my ($sysroot) = glob("$Bin/../staging_dir/target-${arch}_${libc}/root-*/");
+ my ($sysroot) = glob("$Bin/../staging_dir/target-${arch}_${libc}*/root-*/");
print $fh "set sysroot $sysroot\n" if $sysroot;
my $cmd = "target extended-remote";