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]

gdb and binutils branch master updated. 2c51604d3adbcc77a25d78ce900f5be4597c2504


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  2c51604d3adbcc77a25d78ce900f5be4597c2504 (commit)
      from  342119630e4612856017d03f2892f5a693d85d8e (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=2c51604d3adbcc77a25d78ce900f5be4597c2504

commit 2c51604d3adbcc77a25d78ce900f5be4597c2504
Author: Gary Benson <gbenson@redhat.com>
Date:   Wed Jul 23 14:51:26 2014 +0100

    Rationalize "fatal" error handling outside of gdbserver
    
    GDB and gdbserver have functions named "fatal" that are used in
    completely different ways.  In gdbserver "fatal" is used to handle
    critical errors: it differs from "error" in that "fatal" causes
    gdbserver to exit whereas "error" does not.  In GDB "fatal" is used
    to abort the current operation and return to the command level.
    This is implemented by throwing a non-error "RETURN_QUIT" exception.
    
    This commit removes GDB's "fatal" and "vfatal" functions entirely.
    The exception-throwing function "throw_vfatal" is renamed as
    "throw_vquit", and a new convenience function "throw_quit" is added.
    The small number of calls to "fatal" are replaced with calls to
    "throw_quit", making what is happening more obvious.
    
    This commit also modifies GDB's "throw_error" to call "throw_verror"
    rather than calling "throw_it" directly.  This change means the
    assignment of RETURN_ERROR as the exception type now happens in
    precisely one place in GDB rather than two.
    
    gdb/
    2014-07-24  Gary Benson  <gbenson@redhat.com>
    
    	* exceptions.h (throw_vfatal): Renamed to...
    	(throw_vquit): New declaration.
    	(throw_quit): Likewise.
    	* exceptions.c (throw_vfatal): Renamed to...
    	(throw_vquit): New function.
    	(throw_quit): Likewise.
    	(throw_error): Call throw_verror rather than throw_it.
    	* utils.h (vfatal): Removed.
    	(fatal): Likewise.
    	* utils.c (vfatal): Removed.
    	(fatal): Likewise.
    	(internal_verror): Replaced call to fatal with call to throw_quit.
    	(quit): Replaced calls to fatal with calls to throw_quit.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog    |   16 ++++++++++++++++
 gdb/exceptions.c |   14 ++++++++++++--
 gdb/exceptions.h |    4 +++-
 gdb/utils.c      |   28 ++++------------------------
 gdb/utils.h      |    6 ------
 5 files changed, 35 insertions(+), 33 deletions(-)


hooks/post-receive
-- 
gdb and binutils


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