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 darwin-nat.c


CVSROOT:	/cvs/src
Module name:	src
Changes by:	brobecke@sourceware.org	2013-05-06 12:35:46

Modified files:
	gdb            : ChangeLog darwin-nat.c 

Log message:
	darwin-nat.c: Do not use gdb_assert on system call outcomes.
	
	There were many cases were we make a system call which could fail
	due to reasons outside of the debugger control. We should handle
	these situations a little more gracefully than triggering an
	internal error.
	
	gdb/ChangeLog:
	
	* darwin-nat.c (darwin_mourn_inferior): Replace call to
	gdb_assert by call to MACH_CHECK_ERROR.
	(darwin_attach_pid): Raise an error rather than a failed
	assertion when various system calls failed.  Report a warning
	instead of raising a failed assertion when PREV_NOT is not NULL
	after call to mach_port_request_notification.
	(darwin_ptrace_me): Raise an error rather than a failed
	assertion when read returns nonzero.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15505&r2=1.15506
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/darwin-nat.c.diff?cvsroot=src&r1=1.42&r2=1.43


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