vx32

Local 9vx git repository for patches.
git clone git://r-36.net/vx32
Log | Files | Refs

commit 13f202cb2acc8e82535ce544ec22159b30615727
parent 5603ecae5d3b0b67b5e1da8660059b9a88cb8f3a
Author: Russ Cox <rsc@swtch.com>
Date:   Wed,  2 Jul 2008 11:52:13 -0400

9vx: turn -A on all the time

Diffstat:
Msrc/9vx/main.c | 2+-
Msrc/9vx/stub.c | 9++++++---
2 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/9vx/main.c b/src/9vx/main.c @@ -36,7 +36,7 @@ extern Dev drawdevtab; extern Dev fsdevtab; extern Dev audiodevtab; -int doabort; +int doabort = 1; // for now char* argv0; char* conffile = "9vx"; Conf conf; diff --git a/src/9vx/stub.c b/src/9vx/stub.c @@ -497,11 +497,14 @@ panic(char *fmt, ...) buf[n] = '\n'; write(2, buf, n+1); if(doabort){ -#ifndef __APPLE__ - abort(); -#endif +#ifdef __APPLE__ + fprint(2, "sleeping, so you can attach gdb to pid %d\n", (int)getpid()); for(;;) microdelay(1000000); +#else + fprint(2, "aborting, to dump core.\n"); + abort(); +#endif } exit(0); }