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

From: Jilles Tjoelker <jilles_at_stack.nl>
Date: Mon, 2 Apr 2012 19:17:47 +0200
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
Received on Mon Apr 02 2012 - 15:17:49 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:25 UTC