aboutsummaryrefslogtreecommitdiff
path: root/gdb/thread-db.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-09-14 14:46:13 +0000
committerAndrew Cagney <cagney@redhat.com>2004-09-14 14:46:13 +0000
commit95575b2e7eb94581eda5d764b5f13fba95267890 (patch)
treeba01fbc219300f68caacf41ebf3f91e8b70afd35 /gdb/thread-db.c
parent6c4182ddc9e707f2bb12ee248458e3082ad28ce4 (diff)
downloadgdb-95575b2e7eb94581eda5d764b5f13fba95267890.zip
gdb-95575b2e7eb94581eda5d764b5f13fba95267890.tar.gz
gdb-95575b2e7eb94581eda5d764b5f13fba95267890.tar.bz2
2004-09-14 Andrew Cagney <cagney@gnu.org>
* thread-db.c (thread_db_new_objfile): Assume that there is a child process.
Diffstat (limited to 'gdb/thread-db.c')
-rw-r--r--gdb/thread-db.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/gdb/thread-db.c b/gdb/thread-db.c
index 326bf72..8bf5292 100644
--- a/gdb/thread-db.c
+++ b/gdb/thread-db.c
@@ -697,14 +697,8 @@ thread_db_new_objfile (struct objfile *objfile)
push_target (&thread_db_ops);
using_thread_db = 1;
- /* We can only poke around if there actually is a child process.
- If there is no child process alive, postpone the steps below
- until one has been created. */
- if (proc_handle.pid != 0)
- {
- enable_thread_event_reporting ();
- thread_db_find_new_threads ();
- }
+ enable_thread_event_reporting ();
+ thread_db_find_new_threads ();
break;
default: