Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37731349
en ru br
Репозитории ALT
S:13.2.0.43.854f46b6377-alt2
5.1: 6.6-alt3
4.1: 6.6-alt3
4.0: 6.6-alt2
3.0: 6.3-alt2
www.altlinux.org/Changes

Группа :: Разработка/Отладчики
Пакет: gdb

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: gdb-6.3-lwp-cache-20041216.patch
Скачать


2004-12-16  Jeff Johnston  <jjohnstn@redhat.com>
	* linux-thread-db.c (clear_lwpip_callback): Removed.
	(thread_db_resume): Do not iterate and call
	clear_lwp_callback.
--- gdb-6.3/gdb/linux-thread-db.c.fix	Thu Dec 16 16:32:13 2004
+++ gdb-6.3/gdb/linux-thread-db.c	Thu Dec 16 16:32:30 2004
@@ -822,19 +822,6 @@ thread_db_detach (char *args, int from_t
   target_beneath->to_detach (args, from_tty);
 }
 
-static int
-clear_lwpid_callback (struct thread_info *thread, void *dummy)
-{
-  /* If we know that our thread implementation is 1-to-1, we could save
-     a certain amount of information; it's not clear how much, so we
-     are always conservative.  */
-
-  thread->private->th_valid = 0;
-  thread->private->ti_valid = 0;
-
-  return 0;
-}
-
 static void
 thread_db_resume (ptid_t ptid, int step, enum target_signal signo)
 {
@@ -845,9 +832,6 @@ thread_db_resume (ptid_t ptid, int step,
   else if (is_thread (ptid))
     ptid = lwp_from_thread (ptid);
 
-  /* Clear cached data which may not be valid after the resume.  */
-  iterate_over_threads (clear_lwpid_callback, NULL);
-
   target_beneath->to_resume (ptid, step, signo);
 
   do_cleanups (old_chain);
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin