| // Copyright 2020 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. | |
| library fuchsia.debugger; | |
| using zx; | |
| @discoverable | |
| closed protocol DebugAgent { | |
| /// Hand the debug agent a socket that connects it to the debugger. This | |
| /// will return ZX_ERR_ALREADY_BOUND if a connection already exists. | |
| strict Connect(resource struct { | |
| socket zx.Handle:SOCKET; | |
| }) -> (struct { | |
| status zx.Status; | |
| }); | |
| }; |