From 1fe9d38f8490430dcb7917c3f760061fe4d78d62 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 28 Jan 2008 07:52:22 +0000 Subject: improved last execution line tracking a bit --- debug.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debug.h') diff --git a/debug.h b/debug.h index 35ba8c80..565fa04d 100644 --- a/debug.h +++ b/debug.h @@ -104,8 +104,9 @@ void dbgPrintAllDebugInfo(void); # define ENDfunc #endif #if 1 /* DEV debug: set to 1 to enable -- rgerhards, 2008-01-13 */ -# define RUNLOG dbgprintf("%s:%d: %s: log point\n", __FILE__, __LINE__, __func__) -# define RUNLOG_VAR(fmt, x) dbgprintf("%s:%d: %s: var '%s'[%s]: " fmt "\n", __FILE__, __LINE__, __func__, #x, fmt, x) +# define RUNLOG dbgSetExecLocation(dbgCALLStaCK_POP_POINT, __LINE__); dbgprintf("%s:%d: %s: log point\n", __FILE__, __LINE__, __func__) +# define RUNLOG_VAR(fmt, x) dbgSetExecLocation(dbgCALLStaCK_POP_POINT, __LINE__);\ + dbgprintf("%s:%d: %s: var '%s'[%s]: " fmt "\n", __FILE__, __LINE__, __func__, #x, fmt, x) #else # define RUNLOG # define RUNLOG_VAR(x) -- cgit v1.2.3