try to give more helpful message in console aborts
This commit is contained in:
parent
2be95d87c6
commit
09d33c6cad
@ -1421,7 +1421,7 @@ InteractSIGINT(int ch) {
|
|||||||
if (Yap_PrologMode & (GCMode|ConsoleGetcMode|GrowStackMode|GrowHeapMode)) {
|
if (Yap_PrologMode & (GCMode|ConsoleGetcMode|GrowStackMode|GrowHeapMode)) {
|
||||||
Yap_PrologMode |= AbortMode;
|
Yap_PrologMode |= AbortMode;
|
||||||
} else {
|
} else {
|
||||||
Yap_Error(PURE_ABORT, TermNil, "");
|
Yap_Error(PURE_ABORT, TermNil, "abort from console");
|
||||||
/* in case someone mangles the P register */
|
/* in case someone mangles the P register */
|
||||||
save_machine_regs();
|
save_machine_regs();
|
||||||
#if _MSC_VER || defined(__MINGW32__)
|
#if _MSC_VER || defined(__MINGW32__)
|
||||||
|
Reference in New Issue
Block a user