From d1566ff56263eb8c4af82843dd568ca6ec446df0 Mon Sep 17 00:00:00 2001 From: Fernando Nasser Date: Fri, 13 Apr 2001 13:51:54 +0000 Subject: [PATCH] 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. --- gdb/ChangeLog | 8 ++++++++ gdb/procfs.c | 2 ++ 2 files changed, 10 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 988226730a..8716961d68 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 a899dac9c8..1c15c367c2 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. */