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. 70795c525e5b8ca5e9fb8ffbaf33a5f281d53320


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  70795c525e5b8ca5e9fb8ffbaf33a5f281d53320 (commit)
      from  c8de034b6ae75f0b23d45d15c927daac61c33a3c (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=70795c525e5b8ca5e9fb8ffbaf33a5f281d53320

commit 70795c525e5b8ca5e9fb8ffbaf33a5f281d53320
Author: Luis Machado <lgustavo@codesourcery.com>
Date:   Tue Jun 17 10:42:23 2014 +0100

    In a couple functions (type_update_when_use_rtti_test and
    skip_type_update_when_not_use_rtti_test) the testcase assumes an
    uninitialized object has a specific type. In particular, 'ptr' and
    's'.
    
    In reality the compiler is free to do what it wants with that
    uninitialized variable, even initialize it beforehand with the future
    assignment's value.  This is exactly what happens on some targets.
    
    ptr should have type 'Base *', but it really has type 'Derived *'
    because it is already initialized (earlier) by the compiler. The same
    thing happens to 's'.
    
    The following patch addresses this by explicitly initializing those
    variables so the compiler doesn't optimize their assignments and GDB
    can print their correct values.
    
    2014-06-17  Luis Machado  <lgustavo@codesourcery.com>
    
    	* gdb.mi/mi-var-rtti.cc (type_update_when_use_rtti_test):
    	Initialize ptr and S explicitly.
    	(skip_type_update_when_not_use_rtti_test): Likewise.

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

Summary of changes:
 gdb/testsuite/ChangeLog             |    6 ++++++
 gdb/testsuite/gdb.mi/mi-var-rtti.cc |   28 ++++++++++++++++------------
 2 files changed, 22 insertions(+), 12 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]