patches/gdb/6.4/500-thread-timeout.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 24 16:24:09 2008 +0000 (2008-06-24)
changeset 611 eac4dc8da8a9
permissions -rw-r--r--
New patches from Ioannis E. VENETIS to allow building more up-to-date Alpha x-compilers.
Some patches are still missing, though.
See: http://sourceware.org/ml/libc-help/2008-06/msg00061.html

/trunk/patches/glibc/2.5.1/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5.1/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/2.5/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/linuxthreads-2.3.6/270-glibc-linuxthreads-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/gcc/4.2.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.2/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.3/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
11 files changed, 225 insertions(+)
     1 --- gdb-6.3.org/gdb/gdbserver/thread-db.c	2004-10-17 02:42:00.000000000 +0900
     2 +++ gdb-6.3/gdb/gdbserver/thread-db.c	2005-01-27 12:19:29.000000000 +0900
     3 @@ -21,6 +21,7 @@
     4     Foundation, Inc., 59 Temple Place - Suite 330,
     5     Boston, MA 02111-1307, USA.  */
     6  
     7 +#include <unistd.h>
     8  #include "server.h"
     9  
    10  #include "linux-low.h"
    11 @@ -142,6 +143,7 @@
    12    td_event_msg_t msg;
    13    td_err_e err;
    14    struct inferior_linux_data *tdata;
    15 +  int timeout;
    16  
    17    if (debug_threads)
    18      fprintf (stderr, "Thread creation event.\n");
    19 @@ -152,7 +154,13 @@
    20       In the LinuxThreads implementation, this is safe,
    21       because all events come from the manager thread
    22       (except for its own creation, of course).  */
    23 -  err = td_ta_event_getmsg (thread_agent, &msg);
    24 +  for (timeout = 0; timeout < 50000; timeout++)
    25 +    {
    26 +      err = td_ta_event_getmsg (thread_agent, &msg);
    27 +      if (err != TD_NOMSG)
    28 +	break;
    29 +      usleep(1000);
    30 +    }
    31    if (err != TD_OK)
    32      fprintf (stderr, "thread getmsg err: %s\n",
    33  	     thread_db_err_str (err));
    34