diff options
| author | Jason Molenda <jmolenda@apple.com> | 2014-07-10 02:17:31 +0000 |
|---|---|---|
| committer | Jason Molenda <jmolenda@apple.com> | 2014-07-10 02:17:31 +0000 |
| commit | 8c074015047cf88fea703d981ba214d895a744d3 (patch) | |
| tree | fb2d2d7788a2f2798310f90d37e5158ddfd9fab0 /llvm/tools/llvm-readobj/llvm-readobj.cpp | |
| parent | e81b42fde98c5c2fb023d9cca5c79ed10dfde7ef (diff) | |
| download | bcm5719-llvm-8c074015047cf88fea703d981ba214d895a744d3.tar.gz bcm5719-llvm-8c074015047cf88fea703d981ba214d895a744d3.zip | |
Add a new test in api/multiple-debuggers which tries to create 50
debug sessions simultaneously to expose race conditoin/locking
issues.
This directory has an inferior program, testprog.cpp that has a
couple of functions we can put breakpoints on.
It has a driver program, multi-process-driver.cpp, which links
against the LLDB solib and uses the SB APIs. It creates 50 pthreads,
creates a debugger on all of them, launches a debug session of the
inferior testprog, hits a couple breakpoints, walks the stack,
continues, etc., and then kills the inferior and ends the debug
session.
A pass is if all fifty debug sessions complete successfully
in the alloted time (~60 seconds).
We may need to tweak this one to work correctly on different
platforms/targets but I wanted to get it checked in to start.
llvm-svn: 212671
Diffstat (limited to 'llvm/tools/llvm-readobj/llvm-readobj.cpp')
0 files changed, 0 insertions, 0 deletions

