blob: 48fcff106ba3444f0ff19543e35129e79a4ce902 [file] [log] [blame]
# Copyright 2017 syzkaller project authors. All rights reserved.
# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
include <zircon/syscalls.h>
include <zircon/syscalls/exception.h>
resource zx_task[zx_handle]
zx_task_bind_exception_port(task zx_task, eport zx_port, key proc[1000, 4], options flags[exception_port_options])
zx_task_create_exception_channel(task zx_task, options flags[exception_port_options], out ptr[out, zx_chan])
zx_task_resume_from_exception(task zx_task, eport zx_port, options flags[task_resume_options])
# This is disabled until we figure out how to prevent executor from killing fuzzer (#594).
# zx_task_kill(handle zx_task)
# zx_task_suspend(handle zx_task, token ptr[out, zx_handle])
exception_port_options = ZX_EXCEPTION_PORT_DEBUGGER
task_resume_options = ZX_RESUME_TRY_NEXT