aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFernando Nasser <fnasser@redhat.com>2001-04-13 13:51:54 +0000
committerFernando Nasser <fnasser@redhat.com>2001-04-13 13:51:54 +0000
commitd1566ff56263eb8c4af82843dd568ca6ec446df0 (patch)
tree940dd9b78de7a7e750fc16dd3e080c129ea9f0aa
parent7ce691aec4ef1b3ee705799d7166bc949815440c (diff)
downloadgdb-d1566ff56263eb8c4af82843dd568ca6ec446df0.zip
gdb-d1566ff56263eb8c4af82843dd568ca6ec446df0.tar.gz
gdb-d1566ff56263eb8c4af82843dd568ca6ec446df0.tar.bz2
2001-04-13 Fernando Nasser <fnasser@redhat.com>
From Adam Mirowski <Adam.Mirowski@Sun.COM> 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.
-rw-r--r--gdb/ChangeLog8
-rw-r--r--gdb/procfs.c2
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 9882267..8716961 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2001-04-13 Fernando Nasser <fnasser@redhat.com>
+
+ From Adam Mirowski <Adam.Mirowski@Sun.COM>
+ 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 <kevinb@redhat.com>
* solib-aix5.c (enum maptype): Delete.
diff --git a/gdb/procfs.c b/gdb/procfs.c
index a899dac..1c15c36 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. */