aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>1997-10-24 21:04:39 +0000
committerDavid Taylor <taylor@redhat.com>1997-10-24 21:04:39 +0000
commit022278948f2034198be6cdc95cb4bc9b71122698 (patch)
tree5f7781a60687fb368524c0b324d5cd28a812cfaa /gdb/thread.c
parentc14d0cc015fa03494f029143e529cb71cc906eec (diff)
downloadfsf-binutils-gdb-022278948f2034198be6cdc95cb4bc9b71122698.zip
fsf-binutils-gdb-022278948f2034198be6cdc95cb4bc9b71122698.tar.gz
fsf-binutils-gdb-022278948f2034198be6cdc95cb4bc9b71122698.tar.bz2
fix for PR 13618 -- gdb incorrectly reports thread information.
If other systems besides nm-sun4sol2 exhibit the problem, they may need definitions of FIND_NEW_THREADS and a corresponding support function.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r--gdb/thread.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/thread.c b/gdb/thread.c
index b8bf9e1..4c158ff 100644
--- a/gdb/thread.c
+++ b/gdb/thread.c
@@ -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)