This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
src/gdb ChangeLog darwin-nat.c
- From: brobecke at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: Mon, 06 May 2013 12:35:46 +0000
- Subject: 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