From 835b293d35a209d38047126443d41fa7090daa4c Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Mon, 19 Jun 2017 21:20:57 +0200 Subject: Use our own variant of 'assert' and 'assert_perror'. Our variants print stack traces on failures. This will make locating errors much easier. --- libthreads/cprocs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libthreads/cprocs.c') diff --git a/libthreads/cprocs.c b/libthreads/cprocs.c index 5459d7de..5fb138d2 100644 --- a/libthreads/cprocs.c +++ b/libthreads/cprocs.c @@ -233,7 +233,7 @@ #include "cthread_internals.h" #include #include /* GNU */ -#include +#include /* * Port_entry's are used by cthread_mach_msg to store information @@ -343,7 +343,7 @@ cthread_wire(void) register cproc_t p = cproc_self(); /* In GNU, we wire all threads on creation (in cproc_alloc). */ - assert (p->wired != MACH_PORT_NULL); + assert_backtrace (p->wired != MACH_PORT_NULL); } /* -- cgit v1.2.3