[Lldb-commits] [lldb] r186193 - Work-around for GCC issue where setting a breakpoint on a vector definition also adds a breakpoint on the d'tor call

Daniel Malea daniel.malea at intel.com
Fri Jul 12 12:46:47 PDT 2013


Author: dmalea
Date: Fri Jul 12 14:46:47 2013
New Revision: 186193

URL: http://llvm.org/viewvc/llvm-project?rev=186193&view=rev
Log:
Work-around for GCC issue where setting a breakpoint on a vector definition also adds a breakpoint on the d'tor call


Modified:
    lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp

Modified: lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp?rev=186193&r1=186192&r2=186193&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp Fri Jul 12 14:46:47 2013
@@ -138,17 +138,17 @@ int main ()
 
     // 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 @@ int main ()
     // 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 @@ int main ()
     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





More information about the lldb-commits mailing list