Re: Debugging FreeBSD user threads with gdb

1999-05-07 Thread Doug Rabson
On Fri, 7 May 1999, Matthew Dillon wrote: > :> :--- uthread_create.c 1999/03/23 05:07:55 1.12 > :> :+++ uthread_create.c 1999/05/06 15:27:33 > :> :@@ -42,6 +42,8 @@ > :> : #include "pthread_private.h" > :> : #include "libc_private.h" > :> : > :> :+static int next_tid = 1; > :> :+ >

Re: Debugging FreeBSD user threads with gdb

1999-05-07 Thread Matthew Dillon
:> :--- uthread_create.c1999/03/23 05:07:55 1.12 :> :+++ uthread_create.c1999/05/06 15:27:33 :> :@@ -42,6 +42,8 @@ :> : #include "pthread_private.h" :> : #include "libc_private.h" :> : :> :+static int next_tid = 1; :> :+ :> : int :> : pthread_create(pthread_t * thread, const pt

Re: Debugging FreeBSD user threads with gdb

1999-05-07 Thread Doug Rabson
On Fri, 7 May 1999, Matthew Dillon wrote: > :--- uthread_create.c 1999/03/23 05:07:55 1.12 > :+++ uthread_create.c 1999/05/06 15:27:33 > :@@ -42,6 +42,8 @@ > : #include "pthread_private.h" > : #include "libc_private.h" > : > :+static int next_tid = 1; > :+ > : int > : pthread_create(pthread_t

Re: Debugging FreeBSD user threads with gdb

1999-05-07 Thread Mikhail Teterin
Matthew Dillon once wrote: > Hmmm. tid is only an int and some programs which create and destroy > threads a lot are almost certainly going to overflow it. 4 billion > is not hard to reach. This can result in duplicate tid's. Unsigned will double that. Not enough either?

Re: Debugging FreeBSD user threads with gdb

1999-05-07 Thread Matthew Dillon
:--- uthread_create.c 1999/03/23 05:07:55 1.12 :+++ uthread_create.c 1999/05/06 15:27:33 :@@ -42,6 +42,8 @@ : #include "pthread_private.h" : #include "libc_private.h" : :+static int next_tid = 1; :+ : int : pthread_create(pthread_t * thread, const pthread_attr_t * attr, : void