00001 #include "exception.h"
00002 #include <stdarg.h>
00003 #include <stdio.h>
00004 #include <stdlib.h>
00005 #include <sys/ptrace.h>
00006 Exception::Exception(const char *format,...)
00007 {
00008 char str[2000];
00009 va_list vl;
00010 va_start(vl,format);
00011 vsprintf(str,format,vl);
00012 va_end(vl);
00013 m_error = str;
00014
00015 if (ptrace(PTRACE_TRACEME, 0, 1, 0) < 0) {
00016 abort();
00017 }
00018
00019 }