This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb and binutils branch master updated. 8503d6e1e564cb5ac61bc6e3f16c0b384c76661e


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".

The branch, master has been updated
       via  8503d6e1e564cb5ac61bc6e3f16c0b384c76661e (commit)
      from  533d0af0b8a8127b6f189222fc57aa11ce7aab2c (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8503d6e1e564cb5ac61bc6e3f16c0b384c76661e

commit 8503d6e1e564cb5ac61bc6e3f16c0b384c76661e
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Tue Jan 6 18:30:53 2015 +0400

    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.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                        |    5 +++++
 gdb/python/py-type.c                 |    2 +-
 gdb/testsuite/ChangeLog              |    5 +++++
 gdb/testsuite/gdb.python/py-type.exp |    6 ++++++
 4 files changed, 17 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
gdb and binutils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]