Skip to content
Snippets Groups Projects
Commit 04c4b01f authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

remote-gdb: fix parsing of arch and libc from given path as well

SVN-Revision: 23407
parent 9d504302
No related branches found
No related tags found
No related merge requests found
...@@ -14,7 +14,7 @@ if( opendir SD, "$Bin/../staging_dir" ) ...@@ -14,7 +14,7 @@ if( opendir SD, "$Bin/../staging_dir" )
{ {
my ( $tid, $arch, $libc, @arches ); 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"); print("Using target $1 ($2)\n");
($arch, $libc) = ($1, $2); ($arch, $libc) = ($1, $2);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment