This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug tui/9660] gdb can enter TUI in Emacs
- From: "pedro at codesourcery dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: 19 Apr 2010 00:37:32 -0000
- Subject: [Bug tui/9660] gdb can enter TUI in Emacs
- References: <20081118170801.9660.tromey@redhat.com>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From pedro at codesourcery dot com 2010-04-19 00:37 -------
Maybe just forbit the TUI also when annotations are in use?
That is, add an `annotation_level' check here (tui/tui-interp.c):
/* True if enabling the TUI is allowed. Example, if the top level
interpreter is MI, enabling curses will certainly lose. */
int
tui_allowed_p (void)
{
/* Only if TUI is the top level interpreter. Also don't try to
setup curses (and print funny control characters) if we're not
outputting to a terminal. */
return tui_is_toplevel && ui_file_isatty (gdb_stdout);
}
The `tui_is_toplevel' check means that the new emacs version
that has switched to MI no longer has this problem. Only
current/older versions using annotations may still have to
be tended for, unless emacs doesn't run gdb with a tty,
in which case this is fixed already by the ui_file_isatty check
shown above. Could you check if you can still reproduce this?
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://sourceware.org/bugzilla/show_bug.cgi?id=9660
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.