Unix implementation for the crash logger. More...
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. | |
Unix implementation for the crash logger.
Definition at line 37 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 137 of file crashlog_unix.cpp.
| 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 61 of file crashlog_unix.cpp.
References seprintf(), and signum.
| 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 41 of file crashlog_unix.cpp.
References seprintf().
| 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 106 of file crashlog_unix.cpp.
References free(), lengthof, and seprintf().
int CrashLogUnix::signum [private] |
Signal that has been thrown.
Definition at line 39 of file crashlog_unix.cpp.
Referenced by LogError().
1.7.1