blob: 30f93492a9cb022753b3b707c39e28e42c9b361b [file]
// 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",
},
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",
// To launch components.
"fuchsia.sys2.LifecycleController.root",
"fuchsia.sys2.RealmQuery.root",
],
from: "parent",
},
{
protocol: [
// To launch tests.
"fuchsia.test.manager.SuiteRunner",
"fuchsia.test.manager.TestCaseEnumerator",
],
from: "parent",
availability: "optional",
},
{
// To watch and attach to components.
event_stream: [
"debug_started",
"stopped",
],
from: "parent",
},
],
expose: [
{
protocol: "fuchsia.debugger.DebugAgent",
from: "self",
},
],
config: {
monitor_root_job: {
type: "bool",
mutability: [ "parent" ],
},
},
}