File: linux-clear-thread-list.patch

package info (click to toggle)
gdb 6.8-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 122,180 kB
  • ctags: 172,644
  • sloc: ansic: 1,435,372; exp: 77,718; asm: 62,568; makefile: 58,690; sh: 17,657; yacc: 9,971; cpp: 5,700; perl: 4,959; xml: 965; pascal: 923; ada: 692; lex: 569; lisp: 453; sed: 231; awk: 138; objc: 134; java: 47; fortran: 43; f90: 19
file content (23 lines) | stat: -rw-r--r-- 830 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Status: unsubmitted

This patch was for Debian bug #303736.  I now believe it's in the wrong
place; the generic mourn inferior should do this, perhaps.

---
 gdb/linux-thread-db.c |    3 +++
 1 file changed, 3 insertions(+)

Index: gdb-6.7.1/gdb/linux-thread-db.c
===================================================================
--- gdb-6.7.1.orig/gdb/linux-thread-db.c	2007-12-03 09:38:14.000000000 -0500
+++ gdb-6.7.1/gdb/linux-thread-db.c	2007-12-03 09:38:18.000000000 -0500
@@ -965,6 +965,9 @@ thread_db_mourn_inferior (void)
 
   target_beneath->to_mourn_inferior ();
 
+  /* Destroy thread info; it's no longer valid.  */
+  init_thread_list ();
+
   /* Delete the old thread event breakpoints.  Do this after mourning
      the inferior, so that we don't try to uninsert them.  */
   remove_thread_event_breakpoints ();