Build error in bin/sh/jobs.c if DEBUG=2

Jilles Tjoelker jilles at stack.nl
Mon Apr 2 17:17:49 UTC 2012


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


More information about the freebsd-current mailing list