|
|
2d795db |
2004-12-16 Jeff Johnston <jjohnstn@redhat.com>
|
|
|
2d795db |
|
|
|
2d795db |
* thread-db.c (clear_lwp_callback): Removed.
|
|
|
2d795db |
(thread_db_resume): Do not iterate and call
|
|
|
2d795db |
clear_lwp_callback.
|
|
|
2d795db |
|
|
|
2d795db |
--- gdb-6.3/gdb/thread-db.c.fix Thu Dec 16 16:32:13 2004
|
|
|
2d795db |
+++ gdb-6.3/gdb/thread-db.c Thu Dec 16 16:32:30 2004
|
|
|
2d795db |
@@ -822,19 +822,6 @@ thread_db_detach (char *args, int from_t
|
|
|
2d795db |
target_beneath->to_detach (args, from_tty);
|
|
|
2d795db |
}
|
|
|
2d795db |
|
|
|
2d795db |
-static int
|
|
|
2d795db |
-clear_lwpid_callback (struct thread_info *thread, void *dummy)
|
|
|
2d795db |
-{
|
|
|
2d795db |
- /* If we know that our thread implementation is 1-to-1, we could save
|
|
|
2d795db |
- a certain amount of information; it's not clear how much, so we
|
|
|
2d795db |
- are always conservative. */
|
|
|
2d795db |
-
|
|
|
2d795db |
- thread->private->th_valid = 0;
|
|
|
2d795db |
- thread->private->ti_valid = 0;
|
|
|
2d795db |
-
|
|
|
2d795db |
- return 0;
|
|
|
2d795db |
-}
|
|
|
2d795db |
-
|
|
|
2d795db |
static void
|
|
|
2d795db |
thread_db_resume (ptid_t ptid, int step, enum target_signal signo)
|
|
|
2d795db |
{
|
|
|
2d795db |
@@ -845,9 +832,6 @@ thread_db_resume (ptid_t ptid, int step,
|
|
|
2d795db |
else if (is_thread (ptid))
|
|
|
2d795db |
ptid = lwp_from_thread (ptid);
|
|
|
2d795db |
|
|
|
2d795db |
- /* Clear cached data which may not be valid after the resume. */
|
|
|
2d795db |
- iterate_over_threads (clear_lwpid_callback, NULL);
|
|
|
2d795db |
-
|
|
|
2d795db |
target_beneath->to_resume (ptid, step, signo);
|
|
|
2d795db |
|
|
|
2d795db |
do_cleanups (old_chain);
|