Skip to content
Snippets Groups Projects
Commit 6913c8b4 authored by Marc G. Fournier's avatar Marc G. Fournier
Browse files

Add an abort() call to ExceptionalCondition so that is Assert is

called, it dumps core...

ABORT_ON_ASSERT must be defined, as I don't know if this is the correct
way to do this...
parent 9fc64aef
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.2 1996/11/11 11:29:15 scrappy Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.3 1996/11/11 11:49:40 scrappy Exp $
* *
* NOTE * NOTE
* This should eventually work with elog(), dlog(), etc. * This should eventually work with elog(), dlog(), etc.
...@@ -50,6 +50,9 @@ ExceptionalCondition(char* conditionName, ...@@ -50,6 +50,9 @@ ExceptionalCondition(char* conditionName,
fileName, lineNumber); fileName, lineNumber);
} }
#ifdef ABORT_ON_ASSERT
abort();
#endif
/* /*
* XXX Depending on the Exception and tracing conditions, you will * XXX Depending on the Exception and tracing conditions, you will
* XXX want to stop here immediately and maybe dump core. * XXX want to stop here immediately and maybe dump core.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment