blob: f752eef7c89a3a589c92c2f8f6bb2e064b6f8be5 [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",
},
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",
},
],
}