From f45e35bd6b08b2fe82fbfad76b316dba5ac22fdb Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Mon, 15 Oct 2012 15:23:44 +0000 Subject: 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. --- gdb/testsuite/gdb.python/py-symtab.exp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/testsuite/gdb.python/py-symtab.exp') diff --git a/gdb/testsuite/gdb.python/py-symtab.exp b/gdb/testsuite/gdb.python/py-symtab.exp index da0c3e4be29..0d3a5f2d83a 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" -- cgit v1.2.1