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. 036e93dfdadd23ac73d3bd7f98f1640ded740cc0


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  036e93dfdadd23ac73d3bd7f98f1640ded740cc0 (commit)
      from  72bfa06c56ec662b4262cc264f45462ccda6a5d6 (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=036e93dfdadd23ac73d3bd7f98f1640ded740cc0

commit 036e93dfdadd23ac73d3bd7f98f1640ded740cc0
Author: Joel Brobecker <brobecker@adacore.com>
Date:   Thu Nov 7 08:35:35 2013 +0400

    Set language for Ada minimal symbols.
    
    This helps with the following issue: Given an Ada program defining
    a global variable:
    
        package Pck is
           Watch : Integer := 1974;
        end Pck;
    
    When printing the address of this variable, GDB also tries to print
    the associated symbol name:
    
        (gdb) p watch'address
        $1 = (access integer) 0x6139d8 <pck__watch>
                                           ^^
                                           ||
    
    The problem is that GDB prints the variable's linkage name, instead
    of its natural name. This is because the language of the associated
    minimal symbol never really gets set.
    
    This patch adds handling for Ada symbols in symbol_find_demangled_name.
    After this patch, we now get:
    
        (gdb) p watch'address
        $1 = (access integer) 0x6139d8 <pck.watch>
                                           ^
                                           |
    
    gdb/ChangeLog:
    
            * symtab.c (symbol_find_demangled_name): Add handling of
            Ada symbols.
    
    gdb/testsuite/ChangeLog:
    
            * gdb.ada/int_deref.exp: Add test verifying that we print
            the decoded symbol name when printing the address of Ada
            symbols.

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

Summary of changes:
 gdb/ChangeLog                       |    5 ++++
 gdb/symtab.c                        |   37 +++++++++++++++++++++++++++++++++++
 gdb/testsuite/ChangeLog             |    6 +++++
 gdb/testsuite/gdb.ada/int_deref.exp |    5 ++++
 4 files changed, 53 insertions(+), 0 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]