summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/windows/winmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osd/windows/winmain.c')
-rw-r--r--src/osd/windows/winmain.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/osd/windows/winmain.c b/src/osd/windows/winmain.c
index 029f868a2f3..c21186648f2 100644
--- a/src/osd/windows/winmain.c
+++ b/src/osd/windows/winmain.c
@@ -34,6 +34,7 @@
#include "strconv.h"
#include "winutf8.h"
#include "winutil.h"
+#include "debug/debugcpu.h"
#define ENABLE_PROFILER 0
#define DEBUG_SLOW_LOCKS 0
@@ -453,12 +454,8 @@ static LONG CALLBACK exception_filter(struct _EXCEPTION_POINTERS *info)
ExitProcess(100);
already_hit = 1;
-#ifdef ENABLE_DEBUGGER
-{
-extern void debug_flush_traces(void);
-debug_flush_traces();
-}
-#endif
+ // flush any debugging traces that were live
+ debug_cpu_flush_traces();
// find our man
for (i = 0; exception_table[i].code != 0; i++)