GdbMiSession.sendCommand

MiPendingCommand sendCommand(string command, MiCommandPriority priority = MiCommandPriority.NORMAL) @trusted

Sends an MI command.

Parameters

commandCommand without trailing newline, e.g. -gdb-version.
priorityCommand priority (default NORMAL).

Returns

A pending command that can be waited on, or ignored for purely async usage.

Example:

auto pending = session.sendCommand("-gdb-version");
auto result = pending.wait();