blob: 8bea47ec4e5b727279bc81119b211d9c3e89c54d [file] [log] [blame]
# Copyright (c) 2017 Linaro Limited.
#
# SPDX-License-Identifier: Apache-2.0
'''Runner stub for QEMU.'''
from .core import ZephyrBinaryRunner
class QemuBinaryRunner(ZephyrBinaryRunner):
'''Place-holder for QEMU runner customizations.'''
def __init__(self, debug=False):
super(QemuBinaryRunner, self).__init__(debug=debug)
@classmethod
def name(cls):
return 'qemu'
def create_from_env(command, debug):
'''Create runner. No environment dependencies.'''
return QemuBinaryRunner()
def do_run(self, command, **kwargs):
if command == 'debugserver':
print('Detached GDB server')