Module Name:    src
Committed By:   kamil
Date:           Tue Nov 22 04:51:06 UTC 2016

Modified Files:
        src/lib/libpthread_dbg: pthread_dbg.c pthread_dbg.h

Log Message:
Obsolete thread_type in td_thread_info_st in <pthread_dbg.h>

The thread_type is irrelevant as all local POSIX threads are in user-space.

Keep the thread_type member in td_thread_info_st to preserve ABI
compatibility.

Later the remnants from M:N will be refactored in one go with library ABI
version bump.

Sponsored by <The NetBSD Foundation>


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libpthread_dbg/pthread_dbg.c
cvs rdiff -u -r1.8 -r1.9 src/lib/libpthread_dbg/pthread_dbg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libpthread_dbg/pthread_dbg.c
diff -u src/lib/libpthread_dbg/pthread_dbg.c:1.50 src/lib/libpthread_dbg/pthread_dbg.c:1.51
--- src/lib/libpthread_dbg/pthread_dbg.c:1.50	Tue Nov 22 04:17:05 2016
+++ src/lib/libpthread_dbg/pthread_dbg.c	Tue Nov 22 04:51:06 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pthread_dbg.c,v 1.50 2016/11/22 04:17:05 kamil Exp $	*/
+/*	$NetBSD: pthread_dbg.c,v 1.51 2016/11/22 04:51:06 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: pthread_dbg.c,v 1.50 2016/11/22 04:17:05 kamil Exp $");
+__RCSID("$NetBSD: pthread_dbg.c,v 1.51 2016/11/22 04:51:06 kamil Exp $");
 
 #define __EXPOSE_STACK 1
 
@@ -235,8 +235,6 @@ td_thr_info(td_thread_t *thread, td_thre
 		info->thread_state = TD_STATE_UNKNOWN;
 	}
 
-	info->thread_type = TD_TYPE_USER;
-
 	if ((val = READ(thread->proc, OFFSET(thread, pt_stack),
 	    &info->thread_stack, sizeof(stack_t))) != 0)
 		return val;

Index: src/lib/libpthread_dbg/pthread_dbg.h
diff -u src/lib/libpthread_dbg/pthread_dbg.h:1.8 src/lib/libpthread_dbg/pthread_dbg.h:1.9
--- src/lib/libpthread_dbg/pthread_dbg.h:1.8	Mon Nov 21 03:02:34 2016
+++ src/lib/libpthread_dbg/pthread_dbg.h	Tue Nov 22 04:51:06 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: pthread_dbg.h,v 1.8 2016/11/21 03:02:34 kamil Exp $	*/
+/*	$NetBSD: pthread_dbg.h,v 1.9 2016/11/22 04:51:06 kamil Exp $	*/
 
 /*-
  * Copyright (c) 2002 Wasabi Systems, Inc.
@@ -84,9 +84,9 @@ typedef struct td_thread_info_st {
 #define	TD_STATE_UNUSED6	6	/* former TD_STATE_SUSPENDED for SA */
 #define	TD_STATE_DEAD		7
 
-#define	TD_TYPE_UNKNOWN	0
-#define	TD_TYPE_USER	1
-#define	TD_TYPE_SYSTEM	2
+#define	TD_TYPE_UNUSED0	0
+#define	TD_TYPE_UNUSED1	1
+#define	TD_TYPE_UNUSED2	2
 
 typedef struct {
 	caddr_t	sync_addr;	/* Address within the process */

Reply via email to