macosx-nat-cmds-load.c [plain text]
#include "defs.h"
#include "top.h"
#include "command.h"
#include "gdbcmd.h"
#include "completer.h"
#include "readline/readline.h"
#include <stdio.h>
#include <string.h>
#include <limits.h>
static int debug_plugins_flag = 0;
void
load_plugin (char *arg, int from_tty)
{
error ("plugins not supported with this gdb");
}
void
info_plugins_command (char *arg, int from_tty)
{
printf_unfiltered ("No plugins.\n");
}
void
_initialize_load_plugin (void)
{
struct cmd_list_element *cmd;
cmd = add_cmd ("load-plugin", class_obscure, load_plugin,
"Usage: load-plugin <plugin>\n"
"Load a plugin from the specified path.", &cmdlist);
set_cmd_completer (cmd, filename_completer);
cmd = add_set_cmd ("plugins", class_obscure,
var_boolean, (char *) &debug_plugins_flag,
"Set if tracing of plugin loading is enabled",
&setdebuglist);
add_show_from_set (cmd, &showdebuglist);
add_info ("plugins", info_plugins_command, "Show current plug-ins state.");
}