summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_win.cc
Commit message (Collapse)AuthorAgeFilesLines
...
* [ASan] Print mmap errno/GetLastError in a readable and consistent wayTimur Iskhodzhanov2014-03-191-6/+9
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D3107 llvm-svn: 204218
* Avoid doing any work when unwinding stack traces with 0 or 1 frameAlexey Samsonov2014-03-041-0/+1
| | | | llvm-svn: 202837
* [asan] Fix Windows build.Evgeniy Stepanov2014-02-111-0/+5
| | | | llvm-svn: 201154
* [ASan/Win] Fall back to stdout if we can't print the reports to stderrTimur Iskhodzhanov2014-02-041-6/+41
| | | | llvm-svn: 200804
* tsan: fix windows buildDmitry Vyukov2014-02-041-2/+0
| | | | llvm-svn: 200778
* [ASan] Implement __sanitizer::InstallDeadlySignalHandlers() and ↵Alexander Potapenko2014-01-311-1/+2
| | | | | | __asan::AsanOnSIGSEGV() on Windows. llvm-svn: 200554
* [ASan] Move the SIGSEGV/SIGBUS handling to sanitizer_commonAlexander Potapenko2014-01-311-0/+9
| | | | | | | This change is a part of refactoring intended to have common signal handling behavior in all tools. This particular CL moves InstallSignalHandlers() into sanitizer_common (making it InstallDeadlySignalHandlers()), but doesn't enable default signal handlers for any tool other than ASan. llvm-svn: 200542
* [ASan] Move the sigaltstack() bits to sanitizer_common.Alexander Potapenko2014-01-281-0/+8
| | | | | | | This change is a part of refactoring intended to have common signal handling behavior in all tools. Note that this particular change doesn't enable use_sigaltstack support in every tool. llvm-svn: 200310
* [asan] add flag uar_noreserve to use noreserve mmap for fake stack. ↵Kostya Serebryany2013-12-131-0/+5
| | | | | | uar_noreserve=1 will save some memory but also negatively affect performance llvm-svn: 197233
* [ASan] Fix StackTrace::SlowUnwindStack on WindowsTimur Iskhodzhanov2013-12-101-0/+3
| | | | llvm-svn: 196894
* [ASan] Use ExitProcess rather than _exit on Windows to avoid calling global ↵Timur Iskhodzhanov2013-11-261-2/+2
| | | | | | dtors etc llvm-svn: 195723
* Remove a FIXME now that I can't reproduce the problemTimur Iskhodzhanov2013-11-091-2/+0
| | | | llvm-svn: 194331
* [Sanitizers] Share some stack walking code between Windows and LinuxTimur Iskhodzhanov2013-11-091-13/+6
| | | | | | Reviewed at http://llvm-reviews.chandlerc.com/D2126 llvm-svn: 194326
* [Sanitizer] Presumable fix stack trace unwinding on WindowsAlexey Samsonov2013-11-071-1/+1
| | | | llvm-svn: 194195
* [Sanitizer] Call Windows unwinder 'slow' and share StackTrace::Unwind across ↵Alexey Samsonov2013-11-071-5/+1
| | | | | | all platforms. No functionality change. llvm-svn: 194193
* [Sanitizer] Remove StackTrace::max_depth fieldAlexey Samsonov2013-10-121-2/+1
| | | | llvm-svn: 192534
* [Sanitizer] Turn GetStackTrace() into StackTrace::Unwind()Alexey Samsonov2013-10-121-7/+5
| | | | llvm-svn: 192533
* [Sanitizer] Refactor symbolization interface: use class instead of several ↵Alexey Samsonov2013-09-101-0/+5
| | | | | | functions. Move some code around to get rid of extra source files llvm-svn: 190410
* sanitizers: Make sure Visual Studio gets error reportsReid Kleckner2013-09-051-0/+18
| | | | | | | | | Visual Studio appears to close stderr before launching a non-console win32 program. This means we don't see any sanitizer reports. If stderr printing fails, call OutputDebugStringA to get the reports into the Visual Studio debugger console. llvm-svn: 190030
* [asan] Hopefully un-break the RTL on WindowsTimur Iskhodzhanov2013-09-031-1/+2
| | | | llvm-svn: 189821
* [Sanitizer] Add the way to find binary in PATHAlexey Samsonov2013-09-031-0/+4
| | | | llvm-svn: 189799
* [ASan] Use less shadow on Win 32-bitTimur Iskhodzhanov2013-07-161-0/+6
| | | | llvm-svn: 186393
* tsan: fix merge bugDmitry Vyukov2013-06-101-4/+0
| | | | llvm-svn: 183648
* tsan: fix windows crash (incorrect stack boundaries)Dmitry Vyukov2013-06-101-0/+11
| | | | llvm-svn: 183646
* tsan: fix windows mingw buildDmitry Vyukov2013-06-101-1/+5
| | | | llvm-svn: 183644
* [nolibc] Move all platforms to internal_getpid.Peter Collingbourne2013-05-171-1/+1
| | | | | | | | | | Before, we had an unused internal_getpid function for Linux, and a platform-independent GetPid function. To make the naming conventions consistent for syscall-like functions, the GetPid syscall wrapper in sanitizer_posix.cc is moved to sanitizer_mac.cc, and GetPid is renamed to internal_getpid, bringing the Linux variant into use. llvm-svn: 182132
* Try to fix Windows build tooPeter Collingbourne2013-05-081-5/+5
| | | | llvm-svn: 181457
* [nolibc] Change internal syscall API to remove reliance on libc's errno.Peter Collingbourne2013-05-081-7/+9
| | | | | | | | | | | | | This change moves to a model where the error value of a system call is potentially contained in the return value itself rather than being implicit in errno. The helper function internal_iserror can be used to extract the error value from a return value. On platforms other than Linux/x86_64 this still uses errno, but other platforms are free to port their error handling to this new model. Differential Revision: http://llvm-reviews.chandlerc.com/D756 llvm-svn: 181436
* [sanitizer] Move GetStackTrace from ASan to sanitizer_common.Sergey Matveev2013-05-081-1/+29
| | | | llvm-svn: 181424
* [sanitizer] Move GetThreadStackAndTls from TSan to sanitizer_common.Sergey Matveev2013-05-071-0/+10
| | | | | | | | Move this function to sanitizer_common because LSan uses it too. Also, fix a bug where the TLS range reported for main thread was off by the size of the thread descriptor from libc (TSan doesn't care much, but for LSan it's critical). llvm-svn: 181322
* Add a GetTid() implementation for WindowsTimur Iskhodzhanov2013-03-251-1/+7
| | | | llvm-svn: 177927
* [sanitizer] Replace more platform checks with SANITIZER_ constants.Evgeniy Stepanov2013-03-191-1/+4
| | | | llvm-svn: 177400
* [Sanitizer] Add default constructor for BlockingMutexAlexey Samsonov2013-03-141-0/+6
| | | | llvm-svn: 177072
* [Sanitizer] fix compilation for WindowsAlexey Samsonov2013-03-141-2/+2
| | | | llvm-svn: 177054
* [Sanitizer] Write a slightly better implementation of GetEnv() function on ↵Alexey Samsonov2013-03-141-11/+30
| | | | | | Windows llvm-svn: 177051
* [sanitizer] Move GetTlsSize code from TSan to sanitizer_common.Evgeniy Stepanov2013-03-131-0/+7
| | | | llvm-svn: 176938
* [Sanitizer] Implement BlockingMutex::CheckLocked()Alexey Samsonov2013-03-111-0/+4
| | | | llvm-svn: 176805
* [Sanitizer] use raw syscall instead of _exit() function on LinuxAlexey Samsonov2013-02-201-4/+4
| | | | llvm-svn: 175622
* [Sanitizer] Make temporary filename depend on user IDAlexey Samsonov2013-02-181-0/+4
| | | | llvm-svn: 175424
* [ASan] Switch Windows to allocator v2, also fixing some build errorsTimur Iskhodzhanov2013-02-081-0/+5
| | | | llvm-svn: 174707
* asan/tsan: fix failing CHECK on windowsDmitry Vyukov2013-02-041-4/+2
| | | | llvm-svn: 174319
* [Sanitizer] extend internal libc with stat/fstat/lstat functionsAlexey Samsonov2013-02-041-0/+12
| | | | llvm-svn: 174316
* asan/tsan: fix compilation errors/bugs on Windows where long is 32-bit even ↵Dmitry Vyukov2013-02-041-2/+2
| | | | | | in 64-bit mode llvm-svn: 174312
* [Sanitizer] use u32 instead of mode_t, which is defined in Darwin headersAlexey Samsonov2013-02-011-1/+1
| | | | llvm-svn: 174189
* [Sanitizer] make internal_open have the same interface as libc versionAlexey Samsonov2013-02-011-1/+9
| | | | llvm-svn: 174187
* asan: fix windows buildDmitry Vyukov2013-01-141-0/+1
| | | | llvm-svn: 172415
* asan/tsan: move blocking mutex from asan to sanitizer_commonDmitry Vyukov2013-01-141-0/+37
| | | | llvm-svn: 172380
* [Sanitizer] add missing header on WindowsAlexey Samsonov2012-12-191-0/+1
| | | | llvm-svn: 170514
* [Sanitizer] implement internal_isatty on WindowsAlexey Samsonov2012-12-191-1/+1
| | | | llvm-svn: 170507
* [asan] fix windows buildKostya Serebryany2012-12-131-1/+1
| | | | llvm-svn: 170101
OpenPOWER on IntegriCloud