port gdbserver

This commit is contained in:
Ciro Santilli
2018-08-31 15:38:07 +01:00
parent 04b878dfa7
commit e8bb30963d
3 changed files with 36 additions and 28 deletions

View File

@@ -2,13 +2,14 @@
import argparse
import base64
import glob
import imp
import re
import subprocess
import os
import re
import shlex
import signal
import stat
import subprocess
import sys
this = sys.modules[__name__]
@@ -151,6 +152,10 @@ def get_stats(stat_re=None, stats_file=None):
ret.append(cols[1])
return ret
def get_toolchain_tool(tool):
global this
return glob.glob(os.path.join(this.host_bin_dir, '*-buildroot-*-{}'.format(tool)))[0]
def print_cmd(cmd, cmd_file=None, extra_env=None):
"""
Format a command given as a list of strings so that it can