This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tui/9660] gdb can enter TUI in Emacs


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]