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. aa4fb036e90f5c976f57cd08f2c024cb0fe24897


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  aa4fb036e90f5c976f57cd08f2c024cb0fe24897 (commit)
      from  9dee8cc6aa668228309de7d0e23e1775beb7d12f (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=aa4fb036e90f5c976f57cd08f2c024cb0fe24897

commit aa4fb036e90f5c976f57cd08f2c024cb0fe24897
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Thu Feb 6 23:44:20 2014 -0500

    Wrong type for 'Length result.
    
    Consider the following code:
    
       type Color is (Black, Red, Green, Blue, White);
       type Primary_Table is array (Color range Red .. Blue) of Boolean;
       Prim : Primary_Table := (True, False, False);
    
    GDB prints the length of arrays in a fairly odd way:
    
       (gdb) p prim'length
       $2 = blue
    
    The length returned should be an integer, not the array index type,
    and this patch fixes this.
    
    gdb/ChangeLog:
    
    	* ada-lang.c (ada_evaluate_subexp): Set the type of the value
    	returned by the 'Length attribute to integer.
    
    testsuite/ChangeLog:
    
    	* gdb.ada/tick_length_array_enum_idx: New testcase.

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

Summary of changes:
 gdb/ChangeLog                                      |    5 ++
 gdb/ada-lang.c                                     |   20 +++++++--
 gdb/testsuite/ChangeLog                            |    4 ++
 .../gdb.ada/tick_length_array_enum_idx.exp         |   41 ++++++++++++++++++++
 .../tick_length_array_enum_idx/foo_n207_004.adb    |   28 +++++++++++++
 .../gdb.ada/tick_length_array_enum_idx/pck.adb     |   34 ++++++++++++++++
 .../gdb.ada/tick_length_array_enum_idx/pck.ads     |   28 +++++++++++++
 7 files changed, 155 insertions(+), 5 deletions(-)
 create mode 100644 gdb/testsuite/gdb.ada/tick_length_array_enum_idx.exp
 create mode 100644 gdb/testsuite/gdb.ada/tick_length_array_enum_idx/foo_n207_004.adb
 create mode 100644 gdb/testsuite/gdb.ada/tick_length_array_enum_idx/pck.adb
 create mode 100644 gdb/testsuite/gdb.ada/tick_length_array_enum_idx/pck.ads


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]