aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi/mi-var-child.exp
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2007-11-07 20:06:29 +0000
committerVladimir Prus <vladimir@codesourcery.com>2007-11-07 20:06:29 +0000
commit214270abf389bb2aa4584423353a7da2a1e6b463 (patch)
tree8e980f439b9001a60df7f261c792c5268fdfca9b /gdb/testsuite/gdb.mi/mi-var-child.exp
parent91ea499d4ae67d29f4ef3aefc3335224a2837254 (diff)
downloadgdb-214270abf389bb2aa4584423353a7da2a1e6b463.zip
gdb-214270abf389bb2aa4584423353a7da2a1e6b463.tar.gz
gdb-214270abf389bb2aa4584423353a7da2a1e6b463.tar.bz2
Fix crash when a variable object being deleted
has any of its children deleted previously. * varobj.c (delete_variable_1): Don't recurse into deleted children.
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-child.exp')
-rw-r--r--gdb/testsuite/gdb.mi/mi-var-child.exp2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-child.exp b/gdb/testsuite/gdb.mi/mi-var-child.exp
index aad9727..c26cada 100644
--- a/gdb/testsuite/gdb.mi/mi-var-child.exp
+++ b/gdb/testsuite/gdb.mi/mi-var-child.exp
@@ -1227,7 +1227,9 @@ mi_gdb_test "-var-update *" \
"\\^done,changelist=\\\[\{name=\"psnp->ptrs.0.next.next.long_ptr\",in_scope=\"true\",type_changed=\"false\"\}\\\]" \
"update all vars psnp->next->next->long_ptr (and 2.long_ptr) changed"
+mi_prepare_inline_tests $srcfile
+mi_run_inline_test child_deletion
mi_gdb_exit