Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2012 19:17:47 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Kristof Provost <kristof@sigsegv.be>
Cc:        current@freebsd.org
Subject:   Re: Build error in bin/sh/jobs.c if DEBUG=2
Message-ID:  <20120402171747.GA47006@stack.nl>
In-Reply-To: <20120401141423.GA22944@psyche>
References:  <20120401141423.GA22944@psyche>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 01, 2012 at 04:14:24PM +0200, Kristof Provost wrote:
> While chasing down an odd issue with alignment faults I activated
> debugging in bin/sh.
> bin/sh/Makefile has a commented out line (# DEBUG_FLAGS+= -g -DDEBUG=2
> -fno-inline) to do this so that's what I did.

> This fails to compile in bin/sh/jobs.c in vforkexecshell().
> The debug TRACE() tries to print variables which don't exist.

> The patch below fixes the compilation problem, but I'm unsure if it's
> printing the relevant information.

Thanks, I committed a fix. I fairly arbitrarily chose some information
to print, since I do not use -DDEBUG=2 myself.

-- 
Jilles Tjoelker



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120402171747.GA47006>