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


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  d36430db79dc8eccb9cb188e1234f7ff044f79b4 (commit)
      from  000339af7b74593f4dd3a679427b9fe34d1254f7 (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=d36430db79dc8eccb9cb188e1234f7ff044f79b4

commit d36430db79dc8eccb9cb188e1234f7ff044f79b4
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Wed Aug 20 14:50:38 2014 +0200

    Fix handling of typedefs to types having a data_location attribute.
    
    Consider an array described in the debugging information as being
    a typedef of an array type for which there is a DW_AT_data_location
    attribute. Trying to print the value of that array currently yields
    incorrect element values. For instance:
    
        (gdb) print foo.three_tdef
        $1 = (6293760, 0, 6293772)
    
    The problem occurs because we check for the data_location attribute
    only on the typedef type, whereas we should be checking for the
    typedef's target type.  As a result, GDB erroneously thinks that
    there is no data_location, and therefore starts reading the array's
    content from the address of the descriptor instead of the data_location
    address.
    
    gdb/ChangeLog:
    
            * value.c (value_from_contents_and_address): Strip resolved_type's
            typedef layers before checking its TYPE_DATA_LOCATION.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.dwarf2/data-loc.exp: Add additional tests exercising
            the handling of variables declared as a typedef to an array
            which a DW_AT_data_location attribute.

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

Summary of changes:
 gdb/ChangeLog                         |    5 ++
 gdb/testsuite/ChangeLog               |    6 ++
 gdb/testsuite/gdb.dwarf2/data-loc.exp |  105 ++++++++++++++++++++++++++++++++-
 gdb/value.c                           |    7 +-
 4 files changed, 118 insertions(+), 5 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]