From: niklas Date: Thu, 21 Mar 1996 00:12:55 +0000 (+0000) Subject: From NetBSD: eliminate setjmp.h X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=df1f20cfbe5dd0520d3a4816eee5d64595476052;p=openbsd From NetBSD: eliminate setjmp.h --- diff --git a/sys/arch/m68k/m68k/db_trace.c b/sys/arch/m68k/m68k/db_trace.c index 0750b4a4031..d9e9c98ed0a 100644 --- a/sys/arch/m68k/m68k/db_trace.c +++ b/sys/arch/m68k/m68k/db_trace.c @@ -1,4 +1,5 @@ -/* $NetBSD: db_trace.c,v 1.12 1995/05/24 20:23:34 gwr Exp $ */ +/* $OpenBSD: db_trace.c,v 1.2 1996/03/21 00:12:55 niklas Exp $ */ +/* $NetBSD: db_trace.c,v 1.14 1996/02/13 17:34:46 gwr Exp $ */ /* * Mach Operating System @@ -28,7 +29,6 @@ #include #include -#include #include @@ -36,7 +36,7 @@ #include #include -jmp_buf *db_recover; +extern label_t *db_recover; /* * Register list @@ -263,10 +263,12 @@ findentry(sp) register instruc; register val; db_addr_t addr, calladdr, nextword; - jmp_buf db_jmpbuf; - jmp_buf *savejmp = db_recover; + label_t db_jmpbuf; + label_t *savejmp; - if (setjmp(*(db_recover = &db_jmpbuf))) { + savejmp = db_recover; + db_recover = &db_jmpbuf; + if (setjmp(&db_jmpbuf)) { /* oops -- we touched something we ought not to have */ /* cannot trace caller of "start" */ sp->k_entry = MAXINT;