diff options
author | Fernando Nasser <fnasser@redhat.com> | 2001-04-13 13:51:54 +0000 |
---|---|---|
committer | Fernando Nasser <fnasser@redhat.com> | 2001-04-13 13:51:54 +0000 |
commit | d1566ff56263eb8c4af82843dd568ca6ec446df0 (patch) | |
tree | 940dd9b78de7a7e750fc16dd3e080c129ea9f0aa | |
parent | 7ce691aec4ef1b3ee705799d7166bc949815440c (diff) | |
download | gdb-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/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/procfs.c | 2 |
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. */ |