Display the ">" prompt in interactive mode while reading canned
authorEli Zaretskii <eliz@gnu.org>
Tue, 8 May 2012 18:49:42 +0000 (18:49 +0000)
committerEli Zaretskii <eliz@gnu.org>
Tue, 8 May 2012 18:49:42 +0000 (18:49 +0000)
commitc41535fdc41896a2e881e1386eb3be9dff6ca6c4
tree27748eeb952799924a6f232d7d48398c331fc846
parent80f5885c0674e3f865455e9e03ea60e67f1e4ed3
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.
gdb/ChangeLog
gdb/cli/cli-script.c
gdb/interps.c
gdb/interps.h