This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] TUI: check whether in secondary prompt instead of immediate_quit
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 12 Apr 2016 13:52:51 -0400
- Subject: [binutils-gdb] TUI: check whether in secondary prompt instead of immediate_quit
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT ab33ab13aa093778263d554dd0e702814a5a8cbd ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: ab33ab13aa093778263d554dd0e702814a5a8cbd
TUI: check whether in secondary prompt instead of immediate_quit
As can be seen in the tui_redisplay_readline comment:
"The command could call prompt_for_continue and we must not restore
SingleKey so that the prompt and normal keymap are used."
immediate_quit is being used as proxy for "secondary prompt".
We have a better predicate nowadays, so use it.
gdb/ChangeLog:
2016-04-12 Pedro Alves <palves@redhat.com>
* tui/tui-io.c (tui_redisplay_readline): Check
gdb_in_secondary_prompt_p instead of immediate_quit.
* tui/tui.c: Include top.h.
(tui_rl_startup_hook): Check gdb_in_secondary_prompt_p instead of
immediate_quit.