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 ravenscar-thread.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2012-10-24 18:19:50

Modified files:
	gdb            : ChangeLog ravenscar-thread.c 

Log message:
	remote packet sent after Ravenscar inferior exited
	
	When debugging a program using the Ravenscar profile, the debugger
	sometimes tries to send the following packet to the remote after
	the inferior exited.
	
	(gdb) c
	Continuing.
	[...]
	Sending packet: $vCont;c:1#13...Ack
	Packet received: W00
	Sending packet: $Hg1#e0...putpkt: write failed: Broken pipe.
	
	As the inferior exited, the remote has already disconnected, and thus
	the operation fails.
	
	The reason why GDB sends the package is because the ravenscar-thread
	module tries to updates the list of threads.  But this doesn't make
	sense, since the program has exited.  This patch fixes it.
	
	gdb/ChangeLog:
	
	* ravenscar-thread.c (ravenscar_wait): Only update the list
	of threads and inferior_ptid if the inferior is still alive.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.14758&r2=1.14759
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ravenscar-thread.c.diff?cvsroot=src&r1=1.11&r2=1.12


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