Implemented _debuggerAssert().

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22966 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-11-20 16:15:27 +00:00
parent ee70f30ea0
commit 5945644720

View File

@ -252,10 +252,16 @@ _xdebugPrintf(const char * fmt, ...)
int
_debuggerAssert(const char * file, int line, char * message)
_debuggerAssert(const char * file, int line, char *message)
{
puts("*** _debuggerAssert call - not yet implemented ***");
printf("%s:%d:%s\n", file, line, message);
char buffer[1024];
snprintf(buffer, sizeof(buffer),
"Assert failed: File: %s, Line: %d, %s",
file, line, message);
debug_printf("%ld: ASSERT: %s\n", find_thread(NULL), buffer);
_kern_debugger(buffer);
return 0;
}