From: Jeffrey Altman Date: Tue, 26 Oct 2010 02:58:51 +0000 (-0400) Subject: Windows: move debug break in afsd_notifier X-Git-Tag: openafs-devel-1_5_78~32 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=867b3313a52b2c740f536bec47ad516160615aa5;p=packages%2Fo%2Fopenafs.git Windows: move debug break in afsd_notifier move the debug break before the cache dump occurs so that a debugger will be signalled faster when a panic condition occurs. Reviewed-on: http://gerrit.openafs.org/3147 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman (cherry picked from commit 1664a2642b56febc08af8f95250a6d64761a525f) Change-Id: I25a0eaaacb44555c1ddf5f538ef9c6792f6dac59 Reviewed-on: http://gerrit.openafs.org/3156 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/WINNT/afsd/afsd_service.c b/src/WINNT/afsd/afsd_service.c index 2b7298a9a..b7bb6a4fd 100644 --- a/src/WINNT/afsd/afsd_service.c +++ b/src/WINNT/afsd/afsd_service.c @@ -83,6 +83,11 @@ static void afsd_notifier(char *msgp, char *filep, long line) afsd_printStack(GetCurrentThread(), &context); } +#ifdef DEBUG + if (IsDebuggerPresent()) + DebugBreak(); +#endif + afsi_log("--- begin dump ---"); cm_MemDumpDirStats(afsi_file, "a", 0); cm_MemDumpBPlusStats(afsi_file, "a", 0); @@ -96,11 +101,6 @@ static void afsd_notifier(char *msgp, char *filep, long line) rx_DumpCalls(afsi_file, "a"); afsi_log("--- end dump ---"); -#ifdef DEBUG - if (IsDebuggerPresent()) - DebugBreak(); -#endif - GenerateMiniDump(NULL); SetEvent(WaitToTerminate);