From: Mark Alexander Date: Fri, 29 Jan 1999 02:19:27 +0000 (+0000) Subject: Fix for PR 17980: X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5c9fdd2b656d306972283e197d1559245221b19;p=binutils-gdb.git Fix for PR 17980: * procfs.c (wait_fd): Handle deleted threads correctly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d3c9e5f2477..667b24b4e17 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Jan 28 18:16:07 1999 Mark Alexander + + * procfs.c (wait_fd): Handle deleted threads correctly. + 1999-01-28 Jason Molenda (jsm@bugshack.cygnus.com) * utils.c (init_page_info): Force window size if running under emacs. diff --git a/gdb/procfs.c b/gdb/procfs.c index eb4cbfbf032..cd1bbe5b67e 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -970,8 +970,9 @@ wait_fd () printf_filtered ("LWP %d exited.\n", (pi->pid >> 16) & 0xffff); close_proc_file (pi); + i--; /* don't skip deleted entry */ if (num_fds != 0) - continue; /* already another event to process */ + break; /* already another event to process */ else goto wait_again; /* wait for another event */ }