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/17810] TUI is excessively slow in mingw console


https://sourceware.org/bugzilla/show_bug.cgi?id=17810

--- Comment #2 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The gdb-7.9-branch branch has been updated by Pedro Alves
<palves@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2b7d5144a58e63cb9517f6a8b31dd7c5e05a7ffe

commit 2b7d5144a58e63cb9517f6a8b31dd7c5e05a7ffe
Author: Doug Evans <dje@google.com>
Date:   Wed Feb 4 13:04:30 2015 +0100

    Speed up GDB's TUI output

    In the TUI mode, we call wrefresh after outputting every single
    character.  This results in the I/O becoming very slow.  Fix this by
    delaying refreshing the console window until an explicit flush of
    gdb_stdout is requested, a write to any other (unbuffered) file is
    done.

    2015-02-04  Doug Evans  <dje@google.com>
            Pedro Alves  <palves@redhat.com>
            Eli Zaretskii  <eliz@gnu.org>

        PR tui/17810
        * tui/tui-command.c (tui_refresh_cmd_win): New function.
        * tui/tui-command.c (tui_refresh_cmd_win): Declare.
        * tui/tui-file.c: #include tui/tui-command.h.
        (tui_file_fputs): Refresh command window if stream is not gdb_stdout.
        (tui_file_flush): Refresh command window if stream is gdb_stdout.
        * tui/tui-io.c (tui_puts): Remove calls to wrefresh, fflush.
        (tui_readline_output): Call tui_refresh_cmd_win.
        (print_filename): Likewise.
        (tui_rl_display_match_list): Likewise.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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