mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-26 11:41:35 +01:00
port gdbserver
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user