mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-14 07:20:35 -08:00
Allow breakpoint on abort
Copied from Perforce Change: 18846 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
4f346ac03b
commit
4e022e7e4d
1 changed files with 6 additions and 2 deletions
|
|
@ -150,13 +150,17 @@ void error(const char *format, ...)
|
|||
va_end(args);
|
||||
}
|
||||
|
||||
static void myabort(void) {
|
||||
abort();
|
||||
}
|
||||
|
||||
void verror(const char *format, va_list args)
|
||||
{
|
||||
fprintf(stdout, "%% ERROR \n!error=true\n");
|
||||
fprintf(stdout, "!errtext=");
|
||||
vfprintf(stdout, format, args);
|
||||
fprintf(stdout, "\n");
|
||||
abort();
|
||||
myabort();
|
||||
}
|
||||
|
||||
/* asserts(1=0, "Axiom violation.");
|
||||
|
|
@ -175,7 +179,7 @@ void asserts(int expr, const char *format, ...)
|
|||
vfprintf(stdout, format, args);
|
||||
fprintf(stdout, "\n");
|
||||
va_end(args);
|
||||
abort();
|
||||
myabort();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue