This is the mail archive of the gdb-cvs@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]

src/gdb ChangeLog remote.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-04-09 12:18:35

Modified files:
	gdb            : ChangeLog remote.c 

Log message:
	Avoid potencially-stale errno usage.
	
	The current throw_perror_with_name/TARGET_CLOSE_ERROR calls assume
	errno is still set to the right error, although remote_unpush_target
	is called in between, which may well change errno.
	
	Tested on x86_64 Fedora 17 w/ gdbserver.
	
	gdb/
	2013-04-09  Pedro Alves  <palves@redhat.com>
	
	* remote.c (unpush_and_perror): New function.
	(readchar, remote_serial_write): Use it.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15387&r2=1.15388
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/remote.c.diff?cvsroot=src&r1=1.538&r2=1.539


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