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 target.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	sergiodj@sourceware.org	2013-10-16 02:41:43

Modified files:
	gdb            : ChangeLog target.c 

Log message:
	This is a simple bug.  target_disable_btrace and target_teardown_btrace,
	both from gdb/target.c, do a "return" calling another function.  But both
	are marked as void.  Despite the fact that the functions being called are
	void as well, this is wrong.  This patch fixes this by calling the functions
	and then returning in the next line.
	
	2013-10-16  Sergio Durigan Junior  <sergiodj@redhat.com>
	
	PR gdb/16042
	* target.c (target_disable_btrace): Fix invalid return value for
	void function.
	(target_teardown_btrace): Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.16103&r2=1.16104
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/target.c.diff?cvsroot=src&r1=1.350&r2=1.351


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