blob: cdb548f0b6a9f771837d4d845f19b6aae61491d0 [file] [log] [blame]
// Copyright 2022 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
{
include: [ "syslog/client.shard.cml" ],
program: {
runner: "elf",
binary: "bin/debug_agent_launcher",
},
capabilities: [
{
protocol: [ "fuchsia.debugger.DebugAgent" ],
},
],
use: [
{
protocol: [
// To attach to processes in limbo.
"fuchsia.exception.ProcessLimbo",
// To attach to the root job.
"fuchsia.kernel.RootJob",
// Used by fdio for running executables.
"fuchsia.process.Launcher",
"fuchsia.process.Resolver", // for executables with "#!resolve" directive.
// For running v1 components.
"fuchsia.sys.Launcher",
// To watch and attach to v2 components.
"fuchsia.sys2.EventSource",
"fuchsia.sys2.RealmExplorer.root",
"fuchsia.sys2.RealmQuery.root",
],
from: "parent",
},
{
// To watch and attach to v2 components.
event: [
"debug_started",
"stopped",
],
from: "parent",
},
{
// Some tests depend on "run /boot/bin/crasher".
directory: "boot",
rights: [ "x*" ],
path: "/boot",
},
],
expose: [
{
protocol: "fuchsia.debugger.DebugAgent",
from: "self",
},
],
}