aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2012-10-15 15:23:47 +0000
committerTom Tromey <tromey@redhat.com>2012-10-15 15:23:47 +0000
commit801e41852339ac13d7d302c5e58de5d7f55d640b (patch)
tree418a29c7d96f3b1152db4c35dda87560ed73923f /gdb/testsuite
parent74f910c87c017f1f232e7a8f67daafc8072c1089 (diff)
downloadgdb-801e41852339ac13d7d302c5e58de5d7f55d640b.zip
gdb-801e41852339ac13d7d302c5e58de5d7f55d640b.tar.gz
gdb-801e41852339ac13d7d302c5e58de5d7f55d640b.tar.bz2
PR python/14635:
* python/py-symtab.c (del_objfile_sal): Set 'symtab' field to Py_None. testsuite * gdb.python/py-symtab.exp: Test sal and symtab destructors.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.python/py-symtab.exp3
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 71c2d85..38a3693 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2012-10-15 Tom Tromey <tromey@redhat.com>
+ * gdb.python/py-symtab.exp: Test sal and symtab destructors.
+
+2012-10-15 Tom Tromey <tromey@redhat.com>
+
* gdb.python/py-symbol.exp: Test symbol destructor.
2012-10-14 Yao Qi <yao@codesourcery.com>
diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp
index da0c3e4..0d3a5f2 100644
--- a/gdb/testsuite/gdb.python/py-symtab.exp
+++ b/gdb/testsuite/gdb.python/py-symtab.exp
@@ -73,3 +73,6 @@ gdb_test "python print \"simple_struct\" in static_symbols" "True" "Test simple_
gdb_unload
gdb_test "python print sal.is_valid()" "False" "Test sal.is_valid"
gdb_test "python print symtab.is_valid()" "False" "Test symtab.is_valid()"
+
+gdb_test_no_output "python sal = None" "Test sal destructor"
+gdb_test_no_output "python symtab = None" "Test symtab destructor"