From 54a359d260fe12b3e0dad71640a47a8235fc4b52 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 16 Dec 2014 15:07:55 -0500 Subject: [PATCH] Changed abort() in deftablePanic() to DebugBreak() for convenience (especially in wine where abort() is NOT caught by winedbg --gdb and for whatever reason I can't set a breakpoint with the same). --- wintable/new/main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/wintable/new/main.c b/wintable/new/main.c index 7d04efa..347e181 100644 --- a/wintable/new/main.c +++ b/wintable/new/main.c @@ -140,10 +140,8 @@ printf("destroy\n"); static void deftablePanic(const char *msg, DWORD lastError) { fprintf(stderr, "Table error: %s (last error %d)\n", msg, lastError); - fprintf(stderr, "This is the default Table error handler function; programs that use Table should provide their own instead.\nThe program will now abort.\n"); -#undef abort - abort(); -#define abort $$$$ + fprintf(stderr, "This is the default Table error handler function; programs that use Table should provide their own instead.\nThe program will now break into the debugger.\n"); + DebugBreak(); } void initTable(void (*panicfunc)(const char *msg, DWORD lastError))