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


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  bd286a290bbfe7039cf9fe0291ab9b1f20937e52 (commit)
      from  673dc4a0542b54d8da67e53eaaa94ace90085421 (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=bd286a290bbfe7039cf9fe0291ab9b1f20937e52

commit bd286a290bbfe7039cf9fe0291ab9b1f20937e52
Author: Kwok Cheung Yeung <kcy@codesourcery.com>
Date:   Sat Oct 18 21:45:36 2014 +0100

    Fix the gdb.dwarf2/dw2-dir-file-name.exp test on MIPS
    
    This patch fixes the failures that occur with the
    gdb.dwarf2/dw2-dir-file-name.exp test on 64-bit MIPS and compressed
    MIPS ISAs (i.e. MIPS16 and microMIPS).
    
    The failures on 64-bit occur because the generated DWARF address
    information is always 32-bit, which causes the upper 32-bits of
    addresses to be truncated and causes breakpoints to be set on the
    wrong address if any of the upper 32-bits are non-zero.  I suspect
    that other 64-bit architectures get away with it because they
    place all their instructions at a VMA lower than 2^32 by default.
    This patch causes 64-bit addresses to be generated if a 64-bit
    target is detected.
    
    The failures on MIPS16 and microMIPS occur because the breakpoint
    address needs to have the LSB set to 1 (used to indicate that the
    code is compressed). However, the function name is interpreted as
    a data label, causing GDB to set breakpoints at even addresses.
    This is fixed by explicitly adding a '.insn' directive (see
    https://sourceware.org/binutils/docs/as/MIPS-insn.html) after the
    label on MIPS only.
    
    gdb/testsuite/
    
    2014-10-18  Kwok Cheung Yeung  <kcy@codesourcery.com>
    
    	* gdb.dwarf2/dw2-dir-file-name.exp (addr_len): New.
    	(out_cu): Use addr_len for the size of addresses.
    	(out_line): Likewise.  Size DW_LNE_set_address instruction
    	according to addr_len.
    	* gdb.dwarf2/dw2-dir-file-name.c (START_INSNS): New.
    	(FUNC): Add START_INSNS to definition.

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

Summary of changes:
 gdb/testsuite/ChangeLog                        |    9 ++++++++
 gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.c   |    7 ++++++
 gdb/testsuite/gdb.dwarf2/dw2-dir-file-name.exp |   27 ++++++++++++++++--------
 3 files changed, 34 insertions(+), 9 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]