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 NEWS corelow.c inferior.h in ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	sergiodj@sourceware.org	2013-10-07 05:34:11

Modified files:
	gdb            : ChangeLog NEWS corelow.c inferior.h infrun.c 
	gdb/doc        : ChangeLog gdb.texinfo 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.base: corefile.exp 
Added files:
	gdb/testsuite/gdb.base: exitsignal.exp normal.c segv.c 

Log message:
	This patch  adds a new convenience variable called "$_exitsignal", which
	will hold the signal number when the inferior terminates due to the
	uncaught signal.
	
	I've made modifications on infrun.c:handle_inferior_event such that
	$_exitcode gets cleared when the inferior signalled, and vice-versa.
	This assumption was made because the variables are mutually
	exclusive, i.e., when the inferior terminates because of an uncaught
	signal it is not possible for it to return.  I have also made modifications
	such that when a corefile is loaded, $_exitsignal gets set to the uncaught
	signal that "killed" the inferior, and $_exitcode is cleared.
	
	The patch also adds a NEWS entry, documentation bits, and a testcase.  The
	documentation entry explains how to use $_exitsignal and $_exitcode in a
	GDB script, by making use of the new $_isvoid convenience function.
	
	gdb/
	2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
	
	* NEWS: Mention new convenience variable $_exitsignal.
	* corelow.c (core_open): Reset exit convenience variables.  Set
	$_exitsignal to the uncaught signal which generated the corefile.
	* infrun.c (handle_inferior_event): Reset exit convenience
	variables.  Set $_exitsignal for TARGET_WAITKIND_SIGNALLED.
	(clear_exit_convenience_vars): New function.
	* inferior.h (clear_exit_convenience_vars): New prototype.
	
	gdb/testsuite/
	2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
	
	* gdb.base/corefile.exp: Test whether $_exitsignal is set and
	$_exitcode is void when opening a corefile.
	* gdb.base/exitsignal.exp: New file.
	* gdb.base/segv.c: Likewise.
	* gdb.base/normal.c: Likewise.
	
	gdb/doc/
	2013-10-06  Sergio Durigan Junior  <sergiodj@redhat.com>
	
	* gdb.texinfo (Convenience Variables): Document $_exitsignal.
	Update entry for $_exitcode.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.16077&r2=1.16078
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/NEWS.diff?cvsroot=src&r1=1.619&r2=1.620
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/corelow.c.diff?cvsroot=src&r1=1.135&r2=1.136
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/inferior.h.diff?cvsroot=src&r1=1.187&r2=1.188
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/infrun.c.diff?cvsroot=src&r1=1.593&r2=1.594
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/ChangeLog.diff?cvsroot=src&r1=1.1493&r2=1.1494
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/doc/gdb.texinfo.diff?cvsroot=src&r1=1.1115&r2=1.1116
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3824&r2=1.3825
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/exitsignal.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/normal.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/segv.c.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.base/corefile.exp.diff?cvsroot=src&r1=1.32&r2=1.33


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