Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6913c8b

Browse files
committed
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 correctway to do this...
1 parent9fc64ae commit6913c8b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

‎src/backend/utils/error/assert.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.2 1996/11/11 11:29:15 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/utils/error/assert.c,v 1.3 1996/11/11 11:49:40 scrappy Exp $
1111
*
1212
* NOTE
1313
* This should eventually work with elog(), dlog(), etc.
@@ -49,7 +49,10 @@ ExceptionalCondition(char* conditionName,
4949
exceptionP->message,conditionName,detail,
5050
fileName,lineNumber);
5151
}
52-
52+
53+
#ifdefABORT_ON_ASSERT
54+
abort();
55+
#endif
5356
/*
5457
* XXX Depending on the Exception and tracing conditions, you will
5558
* XXX want to stop here immediately and maybe dump core.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp