Bug 12149 - sys.stderr uses gdb.write() which writes to stdout
Summary: sys.stderr uses gdb.write() which writes to stdout
Status: RESOLVED FIXED
Alias: None
Product: gdb
Classification: Unclassified
Component: python (show other bugs)
Version: 7.0
: P2 normal
Target Milestone: 7.3
Assignee: Phil Muldoon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-21 20:11 UTC by Mark Florisson
Modified: 2011-03-18 09:06 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Florisson 2010-10-21 20:11:03 UTC
Strings written to sys.stderr (e.g. tracebacks) should go to the stderr output stream.
Comment 1 Sourceware Commits 2011-03-18 08:44:53 UTC
CVSROOT:	/cvs/src
Module name:	src
Changes by:	pmuldoon@sourceware.org	2011-03-18 08:44:48

Modified files:
	gdb            : ChangeLog 
	gdb/doc        : ChangeLog gdb.texinfo 
	gdb/python     : python.c 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.python: python.exp 

Log message:
	2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
	
	PR python/12149
	
	* python/python.c (gdbpy_write): Accept a stream argument and
	operate to the appropriate stream.
	(gdbpy_flush): Likewise.
	(_initialize_python): Add stream constants.
	(finish_python_initialization): Add GdbOutputErrorFile class.
	
	2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
	
	PR python/12149
	
	* gdb.texinfo (Basic Python): Update gdb.write and flush text.
	
	2011-03-18  Phil Muldoon  <pmuldoon@redhat.com>
	
	PR python/12149
	
	* gdb.python/python.exp: Add gdb.write tests.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.12829&r2=1.12830
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1165&r2=1.1166
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.813&r2=1.814
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/python/python.c.diff?cvsroot=src&r1=1.62&r2=1.63
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.2638&r2=1.2639
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.python/python.exp.diff?cvsroot=src&r1=1.20&r2=1.21
Comment 2 Phil Muldoon 2011-03-18 09:06:39 UTC
See cvs commit message above