* mi/mi-out.c (mi_table_begin): Delete unused variable.
* mi/mi-cmd-var.c (print_varobj): Delete unused variable.
(mi_cmd_var_list_children): Delete unused variable.
(varobj_update_one): Delete unused variable.
* mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
* mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
Delete unused variable.
(mi_cmd_stack_list_variables): Delete unused variable.
(list_args_or_locals): Delete unused variable.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
Delete unused variables.
(mi_cmd_file_list_exec_source_files): Delete unused variable.
* mi/mi-cmd-target.c (mi_cmd_target_file_delete):
Delete unused variable.
* mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
(mi_cmd_interpreter_exec): Delete unused variable.
(mi_on_normal_stop): Delete unused variable.
* mi/mi-main.c (run_one_inferior): Delete unused variable.
(print_one_inferior): Delete unused variables.
(mi_execute_command): Delete unused variable.
(mi_cmd_execute): Delete unused variable.
(timestamp): Delete unused variable.
mi_cmd_break_insert (char *command, char **argv, int argc)
{
char *address = NULL;
- enum bp_type type = REG_BP;
int hardware = 0;
int temp_p = 0;
int thread = -1;
int tracepoint = 0;
struct cleanup *back_to;
- struct gdb_exception e;
- struct gdb_events *old_hooks;
enum opt
{
HARDWARE_OPT, TEMP_OPT, CONDITION_OPT,
mi_cmd_file_list_exec_source_file (char *command, char **argv, int argc)
{
struct symtab_and_line st;
- int optind = 0;
- char *optarg;
if (!mi_valid_noargs ("mi_cmd_file_list_exec_source_file", argc, argv))
error (_("mi_cmd_file_list_exec_source_file: Usage: No args"));
mi_cmd_file_list_exec_source_files (char *command, char **argv, int argc)
{
struct symtab *s;
- struct partial_symtab *ps;
struct objfile *objfile;
if (!mi_valid_noargs ("mi_cmd_file_list_exec_source_files", argc, argv))
mi_cmd_stack_list_locals (char *command, char **argv, int argc)
{
struct frame_info *frame;
- enum print_values print_values;
if (argc != 1)
error (_("mi_cmd_stack_list_locals: Usage: PRINT_VALUES"));
mi_cmd_stack_list_variables (char *command, char **argv, int argc)
{
struct frame_info *frame;
- enum print_values print_values;
if (argc != 1)
error (_("Usage: PRINT_VALUES"));
struct block *block;
struct symbol *sym;
struct dict_iterator iter;
- int nsyms;
struct cleanup *cleanup_list;
static struct ui_stream *stb = NULL;
struct type *type;
{
int optind = 0;
char *optarg;
- const char *remote_file, *local_file;
+ const char *remote_file;
static struct mi_opt opts[] =
{
{ 0, 0, 0 }
print_varobj (struct varobj *var, enum print_values print_values,
int print_expression)
{
- struct type *gdb_type;
char *type;
int thread_id;
char *display_hint;
struct varobj *var;
VEC(varobj_p) *children;
struct varobj *child;
- int numchild;
enum print_values print_values;
int ix;
int from, to;
varobj_update_one (struct varobj *var, enum print_values print_values,
int explicit)
{
- struct varobj **cc;
struct cleanup *cleanup = NULL;
VEC (varobj_update_result) *changes;
varobj_update_result *r;
static struct gdb_exception
mi_interpreter_exec (void *data, const char *command)
{
- static struct gdb_exception ok;
char *tmp = alloca (strlen (command) + 1);
strcpy (tmp, command);
mi_execute_command_wrapper (tmp);
{
struct interp *interp_to_use;
int i;
- struct interp_procs *procs;
char *mi_error_message = NULL;
struct cleanup *old_chain;
using cli interpreter, be sure to use MI uiout for output,
not the current one. */
struct ui_out *mi_uiout = interp_ui_out (top_level_interpreter ());
- struct mi_interp *mi = top_level_interpreter_data ();
if (print_frame)
{
static int
run_one_inferior (struct inferior *inf, void *arg)
{
- struct thread_info *tp = 0;
-
if (inf->pid != 0)
{
if (inf->pid != ptid_get_pid (inferior_ptid))
if (!VEC_empty (int, data.cores))
{
- int elt;
- int i;
int *b, *e;
struct cleanup *back_to_2 =
make_cleanup_ui_out_list_begin_end (uiout, "cores");
mi_execute_command (char *cmd, int from_tty)
{
struct mi_parse *command;
- struct ui_out *saved_uiout = uiout;
/* This is to handle EOF (^D). We just quit gdb. */
/* FIXME: we should call some API function here. */
mi_cmd_execute (struct mi_parse *parse)
{
struct cleanup *cleanup;
- int i;
prepare_execute_command ();
static void
timestamp (struct mi_timestamp *tv)
{
- long usec;
gettimeofday (&tv->wallclock, NULL);
#ifdef HAVE_GETRUSAGE
getrusage (RUSAGE_SELF, &rusage);
tv->stime.tv_sec = rusage.ru_stime.tv_sec;
tv->stime.tv_usec = rusage.ru_stime.tv_usec;
#else
- usec = get_run_time ();
- tv->utime.tv_sec = usec/1000000L;
- tv->utime.tv_usec = usec - 1000000L*tv->utime.tv_sec;
- tv->stime.tv_sec = 0;
- tv->stime.tv_usec = 0;
+ {
+ long usec = get_run_time ();
+
+ tv->utime.tv_sec = usec/1000000L;
+ tv->utime.tv_usec = usec - 1000000L*tv->utime.tv_sec;
+ tv->stime.tv_sec = 0;
+ tv->stime.tv_usec = 0;
+ }
#endif
}
int nr_rows,
const char *tblid)
{
- mi_out_data *data = ui_out_data (uiout);
mi_open (uiout, tblid, ui_out_type_tuple);
mi_field_int (uiout, -1/*fldno*/, -1/*width*/, -1/*alin*/,
"nr_rows", nr_rows);