aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@adacore.com>2015-01-06 18:30:53 +0400
committerJoel Brobecker <brobecker@adacore.com>2015-01-06 19:07:12 +0400
commit8503d6e1e564cb5ac61bc6e3f16c0b384c76661e (patch)
tree7012de862bf1bd9bb9f8f4b8b0af28d7c8666d72 /gdb/testsuite/ChangeLog
parent533d0af0b8a8127b6f189222fc57aa11ce7aab2c (diff)
downloadgdb-8503d6e1e564cb5ac61bc6e3f16c0b384c76661e.zip
gdb-8503d6e1e564cb5ac61bc6e3f16c0b384c76661e.tar.gz
gdb-8503d6e1e564cb5ac61bc6e3f16c0b384c76661e.tar.bz2
gdb/python: exception trying to create empty array
The following python command fails: (gdb) python print gdb.lookup_type('char').array(1, 0) Traceback (most recent call last): File "<string>", line 1, in <module> ValueError: Array length must not be negative Error while executing Python code. The above is trying to create an empty array, which is fairly command in Ada. gdb/ChangeLog: * python/py-type.c (typy_array_1): Do not raise negative-length exception if N2 is equal to N1 - 1. gdb/testsuite/ChangeLog: * gdb.python/py-type.exp: Add a couple test about empty array creation, and negative-length array creation.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 374c285..7db0809 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-01-06 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.python/py-type.exp: Add a couple test about empty
+ array creation, and negative-length array creation.
+
2015-01-02 Doug Evans <xdje42@gmail.com>
* gdb.cp/nsalias.exp: Fix output of external/declaration flags.