mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
Delete interp_exec_p.
* interps.h (interp_exec_p): Delete. * interps.c (interp_exec_p): Delete. (interp_exec): Update. Assert interp->procs->exec_proc != NULL. * mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
2013-12-10 Doug Evans <dje@google.com>
|
||||||
|
|
||||||
|
* interps.h (interp_exec_p): Delete.
|
||||||
|
* interps.c (interp_exec_p): Delete.
|
||||||
|
(interp_exec): Update. Assert interp->procs->exec_proc != NULL.
|
||||||
|
* mi/mi-interp.c (mi_cmd_interpreter_exec): Update.
|
||||||
|
|
||||||
2013-12-10 Yao Qi <yao@codesourcery.com>
|
2013-12-10 Yao Qi <yao@codesourcery.com>
|
||||||
|
|
||||||
* amd64-tdep.c (amd64_analyze_stack_align): Call
|
* amd64-tdep.c (amd64_analyze_stack_align): Call
|
||||||
|
@ -347,21 +347,14 @@ interp_set_quiet (struct interp *interp, int quiet)
|
|||||||
|
|
||||||
/* interp_exec - This executes COMMAND_STR in the current
|
/* interp_exec - This executes COMMAND_STR in the current
|
||||||
interpreter. */
|
interpreter. */
|
||||||
int
|
|
||||||
interp_exec_p (struct interp *interp)
|
|
||||||
{
|
|
||||||
return interp->procs->exec_proc != NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
struct gdb_exception
|
struct gdb_exception
|
||||||
interp_exec (struct interp *interp, const char *command_str)
|
interp_exec (struct interp *interp, const char *command_str)
|
||||||
{
|
{
|
||||||
if (interp->procs->exec_proc != NULL)
|
gdb_assert (interp->procs->exec_proc != NULL);
|
||||||
{
|
|
||||||
return interp->procs->exec_proc (interp->data, command_str);
|
return interp->procs->exec_proc (interp->data, command_str);
|
||||||
}
|
}
|
||||||
return exception_none;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* A convenience routine that nulls out all the common command hooks.
|
/* A convenience routine that nulls out all the common command hooks.
|
||||||
Use it when removing your interpreter in its suspend proc. */
|
Use it when removing your interpreter in its suspend proc. */
|
||||||
|
@ -30,7 +30,6 @@ struct interp;
|
|||||||
extern int interp_resume (struct interp *interp);
|
extern int interp_resume (struct interp *interp);
|
||||||
extern int interp_suspend (struct interp *interp);
|
extern int interp_suspend (struct interp *interp);
|
||||||
extern int interp_prompt_p (struct interp *interp);
|
extern int interp_prompt_p (struct interp *interp);
|
||||||
extern int interp_exec_p (struct interp *interp);
|
|
||||||
extern struct gdb_exception interp_exec (struct interp *interp,
|
extern struct gdb_exception interp_exec (struct interp *interp,
|
||||||
const char *command);
|
const char *command);
|
||||||
extern int interp_quiet_p (struct interp *interp);
|
extern int interp_quiet_p (struct interp *interp);
|
||||||
|
@ -231,11 +231,6 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc)
|
|||||||
error (_("-interpreter-exec: could not find interpreter \"%s\""),
|
error (_("-interpreter-exec: could not find interpreter \"%s\""),
|
||||||
argv[0]);
|
argv[0]);
|
||||||
|
|
||||||
if (!interp_exec_p (interp_to_use))
|
|
||||||
error (_("-interpreter-exec: interpreter \"%s\" "
|
|
||||||
"does not support command execution"),
|
|
||||||
argv[0]);
|
|
||||||
|
|
||||||
/* Insert the MI out hooks, making sure to also call the
|
/* Insert the MI out hooks, making sure to also call the
|
||||||
interpreter's hooks if it has any. */
|
interpreter's hooks if it has any. */
|
||||||
/* KRS: We shouldn't need this... Events should be installed and
|
/* KRS: We shouldn't need this... Events should be installed and
|
||||||
|
Reference in New Issue
Block a user