ports

morpheus ports
git clone git://git.2f30.org/ports
Log | Files | Refs | LICENSE

gdb-linux_nat.patch (751B)


      1 the first chunk fixes build errors,
      2 the non_stop part below fixes thread debugging being available
      3 by default without setting any breakpoints or usage of libthread_db.
      4 
      5 --- gdb-7.4.org/gdb/linux-nat.c	2013-08-10 05:24:24.651000003 +0000
      6 +++ gdb-7.4/gdb/linux-nat.c	2013-08-10 05:25:50.966000003 +0000
      7 @@ -71,6 +71,14 @@
      8  # endif
      9  #endif /* HAVE_PERSONALITY */
     10  
     11 +#ifndef __SIGRTMIN
     12 +#define __SIGRTMIN SIGRTMIN
     13 +#endif
     14 +
     15 +#ifndef W_STOPCODE
     16 +#define W_STOPCODE(sig) ((sig) << 8 | 0x7f)
     17 +#endif
     18 +
     19  /* This comment documents high-level logic of this file.
     20  
     21  Waiting for events in sync mode
     22 @@ -2265,7 +2273,7 @@
     23  		status = 0;
     24  	    }
     25  
     26 -	  if (non_stop)
     27 +	  if (1)
     28  	    {
     29  	      /* Add the new thread to GDB's lists as soon as possible
     30  		 so that: