* sol-thread.c (init_sol_core_ops): Initialize to_thread_alive
authorNicholas Duffek <nsd@redhat.com>
Thu, 13 Apr 2000 16:31:50 +0000 (16:31 +0000)
committerNicholas Duffek <nsd@redhat.com>
Thu, 13 Apr 2000 16:31:50 +0000 (16:31 +0000)
and document to_find_new_threads bug.

gdb/ChangeLog
gdb/sol-thread.c

index 0439393b17fa6c274554bbe29f48829c94978220..a5a76855b87ef93725173abd257971cc0cb1ec56 100644 (file)
@@ -1,3 +1,8 @@
+2000-04-13  Nick Duffek  <nsd@cygnus.com>
+
+       * sol-thread.c (init_sol_core_ops): Initialize to_thread_alive
+       and document to_find_new_threads bug.
+
 2000-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
 
        * infrun.c (proceed, normal_stop): Change the error message about
index 14ca05a1c7ad880c6cc3738baff7d858ba6fa248..df54cf87ea87eff0b2412ce1af7d88dddd7ea7b6 100644 (file)
@@ -1632,7 +1632,13 @@ init_sol_core_ops ()
   sol_core_ops.to_has_registers = 1;
   sol_core_ops.to_has_execution = 0;
   sol_core_ops.to_has_thread_control = tc_none;
+  sol_core_ops.to_thread_alive = sol_thread_alive;
   sol_core_ops.to_pid_to_str = solaris_pid_to_str;
+  /* On Solaris/x86, when debugging a threaded core file from process <n>,
+     the following causes "info threads" to produce "procfs: couldn't find pid
+     <n> in procinfo list" where <n> is the pid of the process that produced
+     the core file.  Disable it for now. */
+  /* sol_core_ops.to_find_new_threads = sol_find_new_threads; */
   sol_core_ops.to_sections = 0;
   sol_core_ops.to_sections_end = 0;
   sol_core_ops.to_magic = OPS_MAGIC;