Work-around for GCC issue where setting a breakpoint on a vector definition also adds a breakpoint on the d'tor call
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@186193 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/functionalities/thread/concurrent_events/main.cpp b/test/functionalities/thread/concurrent_events/main.cpp
index 98d7075..db00155 100644
--- a/test/functionalities/thread/concurrent_events/main.cpp
+++ b/test/functionalities/thread/concurrent_events/main.cpp
@@ -138,17 +138,17 @@
// Actions are triggered immediately after the thread is spawned
unsigned num_breakpoint_threads = 1;
- unsigned num_watchpoint_threads = 1;
- unsigned num_signal_threads = 0;
+ unsigned num_watchpoint_threads = 0;
+ unsigned num_signal_threads = 1;
unsigned num_crash_threads = 0;
// Actions below are triggered after a 1-second delay
unsigned num_delay_breakpoint_threads = 0;
- unsigned num_delay_watchpoint_threads = 1;
+ unsigned num_delay_watchpoint_threads = 0;
unsigned num_delay_signal_threads = 0;
unsigned num_delay_crash_threads = 0;
- thread_vector threads; // Break here and adjust num_[breakpoint|watchpoint|signal|crash]_threads
+ register_signal_handler(SIGUSR1, sigusr1_handler); // Break here and adjust num_[breakpoint|watchpoint|signal|crash]_threads
unsigned total_threads = num_breakpoint_threads \
+ num_watchpoint_threads \
@@ -162,7 +162,6 @@
// Don't let either thread do anything until they're both ready.
pseudo_barrier_init(g_barrier, total_threads);
-
action_counts actions;
actions.push_back(std::make_pair(num_breakpoint_threads, breakpoint_func));
actions.push_back(std::make_pair(num_watchpoint_threads, watchpoint_func));
@@ -175,9 +174,8 @@
actions.push_back(std::make_pair(num_delay_signal_threads, signal_func));
actions.push_back(std::make_pair(num_delay_crash_threads, crash_func));
- register_signal_handler(SIGUSR1, sigusr1_handler);
-
// Create threads that handle instant actions
+ thread_vector threads;
start_threads(threads, actions);
// Create threads that handle delayed actions