2009-09-21 Phil Muldoon <pmuldoon@redhat.com>
authorPhil Muldoon <pmuldoon@redhat.com>
Mon, 21 Sep 2009 09:32:28 +0000 (09:32 +0000)
committerPhil Muldoon <pmuldoon@redhat.com>
Mon, 21 Sep 2009 09:32:28 +0000 (09:32 +0000)
commit2e4d963fb27e10835c44564788b9c3d25bc21119
tree86fc576d3de53a708a84367fd5300e3abfcba5ce
parentcdfbdf303db54c1ab1ef02a44872976e0f119530
2009-09-21  Phil Muldoon <pmuldoon@redhat.com>

* python/py-value.c (valpy_getitem): Test value before allowing
subscript operation.

2009-09-21  Phil Muldoon <pmuldoon@redhat.com>

* gdb.python/py-value.exp (test_subscript_regression): New
function.  Test for invalid subscripts.
* gdb.python/py-value.c (main): Add test array, and pointer to it.
(ptr_ref): New function.
gdb/ChangeLog
gdb/python/py-value.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.python/py-value.c
gdb/testsuite/gdb.python/py-value.exp