* ldmain.c (main): Error if --gc-sections and
[deliverable/binutils-gdb.git] / gdb / thread.c
index b8bf9e1329b64df14096030eeef734a6a11e1bd0..8c61a564cd8643f22edf4491c3d85d51bcf2c1d2 100644 (file)
@@ -347,6 +347,10 @@ info_threads_command (arg, from_tty)
   if (!target_has_stack) error ("No stack.");
 
   prune_threads ();
+#if defined(FIND_NEW_THREADS)
+  FIND_NEW_THREADS ();
+#endif
+
   for (tp = thread_list; tp; tp = tp->next)
     {
       if (tp->pid == current_pid)
@@ -514,7 +518,8 @@ see the IDs of currently known threads.", num);
     error ("Thread ID %d has terminated.\n", num);
 
   switch_to_thread (tp->pid);
-
+  if (context_hook)
+    context_hook (num);
   printf_filtered ("[Switching to %s]\n", target_pid_to_str (inferior_pid));
   print_stack_frame (selected_frame, selected_frame_level, 1);
 }
This page took 0.024156 seconds and 4 git commands to generate.