Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | CrashRecovery: Clear the current context on the first crash, to avoid ↵ | Daniel Dunbar | 2010-08-17 | 1 | -0/+4 |
| | | | | | | re-entering it if the cleanup code crashes. llvm-svn: 111309 | ||||
* | CrashRecovery: Add CrashRecoveryContext::GetCurrent(), so clients can find ↵ | Daniel Dunbar | 2010-08-17 | 1 | -2/+12 |
| | | | | | | the active context from anywhere. llvm-svn: 111308 | ||||
* | CrashRecovery: Make CrashRecoveryContext static methods thread safe. | Daniel Dunbar | 2010-08-17 | 1 | -0/+10 |
| | | | | llvm-svn: 111307 | ||||
* | Fix -Wmissing-field-initializers warnings. | Daniel Dunbar | 2010-07-30 | 1 | -15/+5 |
| | | | | llvm-svn: 109872 | ||||
* | CrashRecovery: Use ThreadLocal::erase() instead of set(0). | Daniel Dunbar | 2010-07-29 | 1 | -1/+1 |
| | | | | llvm-svn: 109752 | ||||
* | Make sure to include config.h, to pickup LLVM_ON_WIN32. | Daniel Dunbar | 2010-07-29 | 1 | -0/+1 |
| | | | | llvm-svn: 109721 | ||||
* | CrashRecoveryContext: Add a simple POSIX implementation. | Daniel Dunbar | 2010-07-29 | 1 | -1/+102 |
| | | | | | | | | - This works, but won't handle crashes on stack overflow, or signals delivered to a thread other than the one that crashed. The latter is particular annoying on Darwin, because SIGABRT tends to go to the main thread. llvm-svn: 109717 | ||||
* | Support: Add CrashRecoveryContext helper object. | Daniel Dunbar | 2010-07-28 | 1 | -0/+88 |
- Designed as a simple wrapper to allow clients to attempt to catch crashes (memory errors, assertion violations, etc.) and do some kind of recovery. - Currently doesn't actually attempt to catch crashes. llvm-svn: 109586 |