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


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  fb151210966ed045c124b7accfb3422d35166607 (commit)
      from  aba02109701c9824499b42f1cf044a995fc603e1 (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=fb151210966ed045c124b7accfb3422d35166607

commit fb151210966ed045c124b7accfb3422d35166607
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Wed Jan 15 20:00:05 2014 +0400

    Try printing array range using the name of its index type
    
       type Char_Table is array (Character range Character'First .. Character'Last)
         of Natural;
    
    Trying to print the type description of this type currently yields:
    
       (gdb) ptype char_table
       type = array ('["00"]' .. '["ff"]') of natural
    
    Although technically correct, it seemed more useful to print the array
    range as:
    
       (gdb) ptype char_table
       type = array (character) of natural
    
    This patch implements this suggestion.
    
    gdb/ChangeLog:
    
            * ada-typeprint (type_is_full_subrange_of_target_type):
            New function.
            (print_range): Add parameter bounds_prefered_p.  If not set,
            try printing range types using the name of their base type.
            (print_range_type): Add parameter bounds_prefered_p.
            Use it in call to print_range.
            (print_array_type, ada_print_type): Update calls to print_range
            and print_range_type.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.ada/array_char_idx: New testcase.

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

Summary of changes:
 gdb/ChangeLog                                      |   11 +++
 gdb/ada-typeprint.c                                |   70 +++++++++++++++++---
 gdb/testsuite/ChangeLog                            |    4 +
 gdb/testsuite/gdb.ada/array_char_idx.exp           |   32 +++++++++
 gdb/testsuite/gdb.ada/array_char_idx/foo.adb       |   20 ++++++
 .../{bp_range_type => array_char_idx}/pck.adb      |    0
 gdb/testsuite/gdb.ada/array_char_idx/pck.ads       |   23 +++++++
 7 files changed, 151 insertions(+), 9 deletions(-)
 create mode 100644 gdb/testsuite/gdb.ada/array_char_idx.exp
 create mode 100644 gdb/testsuite/gdb.ada/array_char_idx/foo.adb
 copy gdb/testsuite/gdb.ada/{bp_range_type => array_char_idx}/pck.adb (100%)
 create mode 100644 gdb/testsuite/gdb.ada/array_char_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]