[Converted from Gnats 2517] The TUI initializes readline eagerly, resulting in some terminal-setting control characters being emitted even if using -batch and redirecting stdout to a file. See this thread for more details: http://sourceware.org/ml/gdb-patches/2008-08/msg00599.html Release: unknown
*** Bug 11250 has been marked as a duplicate of this bug. ***
A patch is posted at http://sourceware.org/ml/gdb-patches/2010-02/msg00120.html
Subject: Bug 9622 CVSROOT: /cvs/src Module name: src Changes by: hjl@sourceware.org 2010-02-04 17:38:00 Modified files: gdb : ChangeLog gdb/tui : tui-interp.c Log message: Call tui_initialize_readline only if gdb_stdout is a tty. 2010-02-04 H.J. Lu <hongjiu.lu@intel.com> PR tui/9622 * tui/tui-interp.c (tui_init): Call tui_initialize_readline only if gdb_stdout is a tty. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.11325&r2=1.11326 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/tui/tui-interp.c.diff?cvsroot=src&r1=1.23&r2=1.24
Fixed.