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. 9730e6ccc4307a03ae2a0dd5c8a17a30fcf9b1f2


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  9730e6ccc4307a03ae2a0dd5c8a17a30fcf9b1f2 (commit)
      from  cec9d598f54503baaead6c8009a7998a0cd731fa (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=9730e6ccc4307a03ae2a0dd5c8a17a30fcf9b1f2

commit 9730e6ccc4307a03ae2a0dd5c8a17a30fcf9b1f2
Author: Yao Qi <yao@codesourcery.com>
Date:   Thu Apr 24 16:51:33 2014 +0800

    Compute the function length instead of hard coding it
    
    In Dwarf::assemble in dwz.exp, 10 is hard-coded in it,
    
     	    subprogram {
     		{name main}
     		{low_pc main addr}
    		{high_pc "main + 10" addr}
     	    }
    
    however, the length of main function varies on architectures.  The
    hard-coded 10 here causes dwz.exp fails on some targets, such as
    nios2.
    
    This patch is to add some code to compute the length of function main,
    which is similar to what we are doing in entry-values.exp.
    
    gdb/testsuite:
    
    2014-04-26  Yao Qi  <yao@codesourcery.com>
    
    	* gdb.dwarf2/dwz.exp: Compile main.c to object.  Restart GDB
    	and compute the length of function main.  Save it in
    	$main_length.
    	(Dwarf::assemble): Use $main_length instead of hard-coded 10.
    	(top-level): Use gdb_compile to compile objects into
    	executable and restart GDB.  Remove invocation to
    	prepare_for_testing.

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

Summary of changes:
 gdb/testsuite/ChangeLog          |   10 ++++++
 gdb/testsuite/gdb.dwarf2/dwz.exp |   58 ++++++++++++++++++++++++++++++++++++--
 2 files changed, 65 insertions(+), 3 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]