diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-09-14 14:46:13 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-09-14 14:46:13 +0000 |
commit | 06eaefa4bd4e1b0ec28a0f83c532c9865bf6b456 (patch) | |
tree | 37153289db728063d7671b05cd20da6d330b9b7b | |
parent | 3fc11f7bb74fceb6dd3f7b1d1743816f2b24a392 (diff) | |
download | gdb-06eaefa4bd4e1b0ec28a0f83c532c9865bf6b456.tar.gz |
2004-09-14 Andrew Cagney <cagney@gnu.org>
* thread-db.c (thread_db_new_objfile): Assume that there is a
child process.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/thread-db.c | 10 |
2 files changed, 7 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 234e3790028..3963e89c4d5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2004-09-14 Andrew Cagney <cagney@gnu.org> + + * thread-db.c (thread_db_new_objfile): Assume that there is a + child process. + 2004-09-13 Jim Blandy <jimb@redhat.com> * valops.c (value_assign): Move 'buffer' to the enclosing block, diff --git a/gdb/thread-db.c b/gdb/thread-db.c index 326bf72642d..8bf52924b3e 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: |