mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-29 16:38:05 +08:00
Remove use of deprecated_command_loop_hook from mi code.
https://sourceware.org/ml/gdb-patches/2013-08/msg00605.html gdb/ChangeLog * mi/mi-interp.c (mi_command_loop): Change signature to match interp_command_loop_ftype. (mi1_command_loop): Remove. (mi2_command_loop): Remove. (mi3_command_loop): Remove. (mi_interpreter_resume): Remove setting of deprecated_command_loop_hook. (_initialize_mi_interp): Set mi_command_loop as the command loop callback.
This commit is contained in:
@ -1,3 +1,15 @@
|
|||||||
|
2013-08-29 Andrew Burgess <aburgess@broadcom.com>
|
||||||
|
|
||||||
|
* mi/mi-interp.c (mi_command_loop): Change signature to match
|
||||||
|
interp_command_loop_ftype.
|
||||||
|
(mi1_command_loop): Remove.
|
||||||
|
(mi2_command_loop): Remove.
|
||||||
|
(mi3_command_loop): Remove.
|
||||||
|
(mi_interpreter_resume): Remove setting of
|
||||||
|
deprecated_command_loop_hook.
|
||||||
|
(_initialize_mi_interp): Set mi_command_loop as the command loop
|
||||||
|
callback.
|
||||||
|
|
||||||
2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
|
2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
|
||||||
|
|
||||||
* valops.c (do_search_struct_field): Pass v2 instead of base_type to
|
* valops.c (do_search_struct_field): Pass v2 instead of base_type to
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
static void mi_execute_command_wrapper (const char *cmd);
|
static void mi_execute_command_wrapper (const char *cmd);
|
||||||
static void mi_execute_command_input_handler (char *cmd);
|
static void mi_execute_command_input_handler (char *cmd);
|
||||||
static void mi_command_loop (int mi_version);
|
static void mi_command_loop (void *data);
|
||||||
|
|
||||||
/* These are hooks that we put in place while doing interpreter_exec
|
/* These are hooks that we put in place while doing interpreter_exec
|
||||||
so we can report interesting things that happened "behind the MI's
|
so we can report interesting things that happened "behind the MI's
|
||||||
@ -52,10 +52,6 @@ static void mi_command_loop (int mi_version);
|
|||||||
static int mi_interp_query_hook (const char *ctlstr, va_list ap)
|
static int mi_interp_query_hook (const char *ctlstr, va_list ap)
|
||||||
ATTRIBUTE_PRINTF (1, 0);
|
ATTRIBUTE_PRINTF (1, 0);
|
||||||
|
|
||||||
static void mi3_command_loop (void);
|
|
||||||
static void mi2_command_loop (void);
|
|
||||||
static void mi1_command_loop (void);
|
|
||||||
|
|
||||||
static void mi_insert_notify_hooks (void);
|
static void mi_insert_notify_hooks (void);
|
||||||
static void mi_remove_notify_hooks (void);
|
static void mi_remove_notify_hooks (void);
|
||||||
static void mi_on_normal_stop (struct bpstats *bs, int print_frame);
|
static void mi_on_normal_stop (struct bpstats *bs, int print_frame);
|
||||||
@ -193,16 +189,6 @@ mi_interpreter_resume (void *data)
|
|||||||
|
|
||||||
deprecated_show_load_progress = mi_load_progress;
|
deprecated_show_load_progress = mi_load_progress;
|
||||||
|
|
||||||
/* If we're _the_ interpreter, take control. */
|
|
||||||
if (current_interp_named_p (INTERP_MI1))
|
|
||||||
deprecated_command_loop_hook = mi1_command_loop;
|
|
||||||
else if (current_interp_named_p (INTERP_MI2))
|
|
||||||
deprecated_command_loop_hook = mi2_command_loop;
|
|
||||||
else if (current_interp_named_p (INTERP_MI3))
|
|
||||||
deprecated_command_loop_hook = mi3_command_loop;
|
|
||||||
else
|
|
||||||
deprecated_command_loop_hook = mi2_command_loop;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -322,25 +308,7 @@ mi_execute_command_input_handler (char *cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
mi1_command_loop (void)
|
mi_command_loop (void *data)
|
||||||
{
|
|
||||||
mi_command_loop (1);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
mi2_command_loop (void)
|
|
||||||
{
|
|
||||||
mi_command_loop (2);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
mi3_command_loop (void)
|
|
||||||
{
|
|
||||||
mi_command_loop (3);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
|
||||||
mi_command_loop (int mi_version)
|
|
||||||
{
|
{
|
||||||
/* Turn off 8 bit strings in quoted output. Any character with the
|
/* Turn off 8 bit strings in quoted output. Any character with the
|
||||||
high bit set is printed using C's octal format. */
|
high bit set is printed using C's octal format. */
|
||||||
@ -996,7 +964,8 @@ _initialize_mi_interp (void)
|
|||||||
mi_interpreter_exec, /* exec_proc */
|
mi_interpreter_exec, /* exec_proc */
|
||||||
mi_interpreter_prompt_p, /* prompt_proc_p */
|
mi_interpreter_prompt_p, /* prompt_proc_p */
|
||||||
mi_ui_out, /* ui_out_proc */
|
mi_ui_out, /* ui_out_proc */
|
||||||
mi_set_logging /* set_logging_proc */
|
mi_set_logging, /* set_logging_proc */
|
||||||
|
mi_command_loop /* command_loop_proc */
|
||||||
};
|
};
|
||||||
|
|
||||||
/* The various interpreter levels. */
|
/* The various interpreter levels. */
|
||||||
|
Reference in New Issue
Block a user