From 7fe21bc48234ef930d52ba98cc2222cae3feb985 Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Sun, 17 Aug 2003 13:08:05 +0000 Subject: [PATCH] Added generation of cpu_log at E_Exit if Heavy_debugging is enabled Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@1187 --- src/misc/support.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/misc/support.cpp b/src/misc/support.cpp index 2bc35acc..31ef5c87 100644 --- a/src/misc/support.cpp +++ b/src/misc/support.cpp @@ -16,6 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ +/* $Id: support.cpp,v 1.17 2003-08-17 13:08:05 qbix79 Exp $ */ #include #include @@ -25,6 +26,7 @@ #include #include #include "dosbox.h" +#include "debug.h" #include "support.h" #include "video.h" @@ -157,6 +159,9 @@ char * StripWord(char * cmd) { static char buf[1024]; //greater scope as else it doesn't always gets thrown right (linux/gcc2.95) void E_Exit(char * format,...) { +#if C_HEAVY_DEBUG + DEBUG_HeavyWriteLogInstruction(); +#endif if(errorlevel>=1) { va_list msg; va_start(msg,format);