Public Member Functions | |
CrashLogUnix (int signum) | |
A crash log is always generated by signal. | |
Private Member Functions | |
char * | LogOSVersion (char *buffer, const char *last) const |
Writes OS' version to the buffer. | |
char * | LogError (char *buffer, const char *last, const char *message) const |
Writes actually encountered error to the buffer. | |
char * | LogStacktrace (char *buffer, const char *last) const |
Writes the stack trace to the buffer, if there is information about it available. | |
Private Attributes | |
int | signum |
Signal that has been thrown. |
Definition at line 32 of file crashlog_unix.cpp.
CrashLogUnix::CrashLogUnix | ( | int | signum | ) | [inline] |
A crash log is always generated by signal.
signum | the signal that was caused by the crash. |
Definition at line 132 of file crashlog_unix.cpp.
char* CrashLogUnix::LogOSVersion | ( | char * | buffer, | |
const char * | last | |||
) | const [inline, private, virtual] |
Writes OS' version to the buffer.
buffer | The begin where to write at. | |
last | The last position in the buffer to write to. |
'
' character after the buffer. Implements CrashLog.
Definition at line 36 of file crashlog_unix.cpp.
References seprintf().
char* CrashLogUnix::LogError | ( | char * | buffer, | |
const char * | last, | |||
const char * | message | |||
) | const [inline, private, virtual] |
Writes actually encountered error to the buffer.
buffer | The begin where to write at. | |
last | The last position in the buffer to write to. | |
message | Message passed to use for possible errors. Can be NULL. |
'
' character after the buffer. Implements CrashLog.
Definition at line 56 of file crashlog_unix.cpp.
References seprintf(), and signum.
char* CrashLogUnix::LogStacktrace | ( | char * | buffer, | |
const char * | last | |||
) | const [inline, private, virtual] |
Writes the stack trace to the buffer, if there is information about it available.
buffer | The begin where to write at. | |
last | The last position in the buffer to write to. |
'
' character after the buffer. Implements CrashLog.
Definition at line 101 of file crashlog_unix.cpp.
References lengthof, and seprintf().
int CrashLogUnix::signum [private] |
Signal that has been thrown.
Definition at line 34 of file crashlog_unix.cpp.
Referenced by LogError().