aboutsummaryrefslogtreecommitdiff
path: root/gdb/interps.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2012-05-08 18:49:42 +0000
committerEli Zaretskii <eliz@gnu.org>2012-05-08 18:49:42 +0000
commitc41535fdc41896a2e881e1386eb3be9dff6ca6c4 (patch)
tree27748eeb952799924a6f232d7d48398c331fc846 /gdb/interps.h
parent80f5885c0674e3f865455e9e03ea60e67f1e4ed3 (diff)
downloadgdb-c41535fdc41896a2e881e1386eb3be9dff6ca6c4.zip
gdb-c41535fdc41896a2e881e1386eb3be9dff6ca6c4.tar.gz
gdb-c41535fdc41896a2e881e1386eb3be9dff6ca6c4.tar.bz2
Display the ">" prompt in interactive mode while reading canned
commands, even when the current interpreter is MI. interps.c (interp_set_temp): New function. interps.h (interp_set_temp): Add prototype. cli/cli-script.c (restore_interp): New cleanup function. (read_command_lines): Temporarily override the current interpreter with CLI and arrange for restoring the original one.
Diffstat (limited to 'gdb/interps.h')
-rw-r--r--gdb/interps.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/interps.h b/gdb/interps.h
index 99431ee..bbf0838 100644
--- a/gdb/interps.h
+++ b/gdb/interps.h
@@ -69,6 +69,7 @@ extern struct interp *interp_lookup (const char *name);
extern struct ui_out *interp_ui_out (struct interp *interp);
extern void *interp_data (struct interp *interp);
extern const char *interp_name (struct interp *interp);
+extern struct interp *interp_set_temp (const char *name);
extern int current_interp_named_p (const char *name);
extern int current_interp_display_prompt_p (void);