From: Fernando Nasser Date: Fri, 13 Apr 2001 13:51:54 +0000 (+0000) Subject: 2001-04-13 Fernando Nasser X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1566ff56263eb8c4af82843dd568ca6ec446df0;p=binutils-gdb.git 2001-04-13 Fernando Nasser From Adam Mirowski Fixed Insight on Solaris. It was not possible to debug a process because of EINTR "errors". * procfs.c: (procfs_wait): if proc_wait_for_stop() fails with EINTR, retry the call. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 988226730a1..8716961d684 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,11 @@ +2001-04-13 Fernando Nasser + + From Adam Mirowski + Fixed Insight on Solaris. It was not possible to debug a process + because of EINTR "errors". + * procfs.c: (procfs_wait): if proc_wait_for_stop() fails + with EINTR, retry the call. + 2001-04-12 Kevin Buettner * solib-aix5.c (enum maptype): Delete. diff --git a/gdb/procfs.c b/gdb/procfs.c index a899dac9c8f..1c15c367c28 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3959,6 +3959,8 @@ wait_again: /* FIXME: might I not just use waitpid? Or try find_procinfo to see if I know about this child? */ } + else if (errno == EINTR) + goto wait_again; else { /* Unknown error from wait_for_stop. */