diff options
author | Tom Tromey <tromey@redhat.com> | 2012-10-15 15:20:27 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-10-15 15:20:27 +0000 |
commit | 74f910c87c017f1f232e7a8f67daafc8072c1089 (patch) | |
tree | 9439ef94297fd2b5a8dd0c4bf8ea1fbab307c018 /gdb/testsuite | |
parent | b7a54b5525ad5f927af8205463294664f493f211 (diff) | |
download | gdb-74f910c87c017f1f232e7a8f67daafc8072c1089.zip gdb-74f910c87c017f1f232e7a8f67daafc8072c1089.tar.gz gdb-74f910c87c017f1f232e7a8f67daafc8072c1089.tar.bz2 |
PR python/14634:
* python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
testsuite
* gdb.python/py-symbol.exp: Test symbol destructor.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/py-symbol.exp | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index f20dd50..71c2d85 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2012-10-15 Tom Tromey <tromey@redhat.com> + + * gdb.python/py-symbol.exp: Test symbol destructor. + 2012-10-14 Yao Qi <yao@codesourcery.com> * gdb.mi/mi2-cli.exp: Move to mi-cli.exp. diff --git a/gdb/testsuite/gdb.python/py-symbol.exp b/gdb/testsuite/gdb.python/py-symbol.exp index bc20ee4..4442e79 100644 --- a/gdb/testsuite/gdb.python/py-symbol.exp +++ b/gdb/testsuite/gdb.python/py-symbol.exp @@ -160,3 +160,4 @@ gdb_test "python print a\[0\].is_valid()" "True" "Test symbol validity" delete_breakpoints gdb_unload gdb_test "python print a\[0\].is_valid()" "False" "Test symbol validity" +gdb_test_no_output "python a = None" "Test symbol destructor" |