def call_remote_program(target, source, env): host = ARGUMENTS.get("host", env.get("OPENOCD_REMOTE_HOST", None)) config = env.Listify(env.get("MODM_OPENOCD_GDBINIT", [])) gdb.call(source=source[0], backend=bem.ExtendedRemote(host), config=map(env.subst, config), commands=["load", "monitor reset", "disconnect", "quit"])
def call_remote_debug(target, source, env): host = ARGUMENTS.get("host", env.get("OPENOCD_REMOTE_HOST", None)) config = env.Listify(env.get("MODM_OPENOCD_GDBINIT", [])) config += env.Listify(env.get("MODM_GDBINIT", [])) gdb.call( source=source[0], backend=bem.ExtendedRemote(host), config=map(env.subst, config), ui=ARGUMENTS.get("ui", "tui"), )
def build_backend(args): return bem.ExtendedRemote(args.host)