patches/gdb/6.7.1/200-gdb-deleted-children.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Tue Jun 24 16:24:09 2008 +0000 (2008-06-24)
changeset 611 eac4dc8da8a9
permissions -rw-r--r--
New patches from Ioannis E. VENETIS to allow building more up-to-date Alpha x-compilers.
Some patches are still missing, though.
See: http://sourceware.org/ml/libc-help/2008-06/msg00061.html

/trunk/patches/glibc/2.5.1/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5.1/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/2.5/270-glibc-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/glibc/2.5/280-glibc-alpha-sigsuspend.patch | 24 24 0 0 ++++++++++
/trunk/patches/glibc/linuxthreads-2.3.6/270-glibc-linuxthreads-alpha-cfi.patch | 25 25 0 0 ++++++++++
/trunk/patches/gcc/4.2.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.0/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.2/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.3.1/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
/trunk/patches/gcc/4.2.3/940-gcc-alpha-signal_h.patch | 17 17 0 0 +++++++
11 files changed, 225 insertions(+)
yann@570
     1
Original patch from gentoo: gentoo/src/patchsets/gdb/6.7.1/50_all_gdb-deleted-children.patch
yann@570
     2
-= BEGIN original header =-
yann@570
     3
http://bugs.gentoo.org/210636
yann@570
     4
http://sourceware.org/ml/gdb-patches/2007-11/msg00136.html
yann@570
     5
yann@570
     6
2007-11-07  Vladimir Prus  <vladimir@codesourcery.com>
yann@570
     7
yann@570
     8
	Fix crash when a variable object being deleted
yann@570
     9
	has any of its children deleted previously.
yann@570
    10
	
yann@570
    11
	* varobj.c (delete_variable_1): Don't recurse
yann@570
    12
	into deleted children.
yann@570
    13
yann@570
    14
-= END original header =-
yann@570
    15
diff -durN gdb-6.7.1.orig/gdb/varobj.c gdb-6.7.1/gdb/varobj.c
yann@570
    16
--- gdb-6.7.1.orig/gdb/varobj.c	2007-08-31 21:01:17.000000000 +0200
yann@570
    17
+++ gdb-6.7.1/gdb/varobj.c	2008-06-17 23:27:45.000000000 +0200
yann@570
    18
@@ -1295,6 +1295,8 @@
yann@570
    19
   for (i = 0; i < VEC_length (varobj_p, var->children); ++i)
yann@570
    20
     {   
yann@570
    21
       varobj_p child = VEC_index (varobj_p, var->children, i);
yann@570
    22
+      if (!child)
yann@570
    23
+	continue;
yann@570
    24
       if (!remove_from_parent_p)
yann@570
    25
 	child->parent = NULL;
yann@570
    26
       delete_variable_1 (resultp, delcountp, child, 0, only_children_p);