thread-specific breakpoints not saved properly by save-breakpoint
[deliverable/binutils-gdb.git] / gold / gold-threads.cc
index f5347bfcb4ae9a616f681ca38108a48a01a3ee93..38a1e1600da72968012809c4adb80963ec6c241a 100644 (file)
@@ -101,13 +101,13 @@ Lock_impl_threads::Lock_impl_threads()
   int err = pthread_mutexattr_init(&attr);
   if (err != 0)
     gold_fatal(_("pthead_mutextattr_init failed: %s"), strerror(err));
-#ifdef PTHREAD_MUTEXT_ADAPTIVE_NP
+#ifdef PTHREAD_MUTEX_ADAPTIVE_NP
   err = pthread_mutextattr_settype(&attr, PTHREAD_MUTEX_ADAPTIVE_NP);
   if (err != 0)
     gold_fatal(_("pthread_mutextattr_settype failed: %s"), strerror(err));
 #endif
 
-  err = pthread_mutex_init (&this->mutex_, &attr);
+  err = pthread_mutex_init(&this->mutex_, &attr);
   if (err != 0)
     gold_fatal(_("pthread_mutex_init failed: %s"), strerror(err));
 
@@ -404,7 +404,7 @@ Once::run_once(void* arg)
 
   err = pthread_mutex_unlock(&once_pointer_control);
   if (err != 0)
-    gold_fatal(_("pthread_mutex_unlock falied: %s"), strerror(err));
+    gold_fatal(_("pthread_mutex_unlock failed: %s"), strerror(err));
 
 #endif // defined(ENABLE_THREADS)
 }
This page took 0.023137 seconds and 4 git commands to generate.