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. 4dc06805c2fa208dc2743099feaacb4230d1b1f7


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  4dc06805c2fa208dc2743099feaacb4230d1b1f7 (commit)
       via  46a93de2ab256dd2cb4e1845a93d9d1ae07b2475 (commit)
      from  c50415e24c5ae8635d550f0c3699ffd88ff14a9b (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=4dc06805c2fa208dc2743099feaacb4230d1b1f7

commit 4dc06805c2fa208dc2743099feaacb4230d1b1f7
Author: Yao Qi <yao@codesourcery.com>
Date:   Sat Aug 30 21:30:36 2014 +0800

    Fix fail in mi-var-child.exp and mi-var-display.exp
    
    Hi,
    I see the following fails on arm-none-eabi target,
    
    -var-list-children --simple-values struct_declarations  ^M
    ^done,numchild="11",children=[...,child={name="struct_declarations.func_ptr_struct",exp="func_ptr_struct",numchild="0",value="0x0 <_ftext>",type="struct _struct_decl (*)(int, char *, long)",thread-id="1"},child={name="struct_declarations.func_ptr_ptr",exp="func_ptr_ptr",numchild="0",value="0x0 <_ftext>",type="struct _struct_decl *(*)(int, char *, long)",thread-id="1"},...
    (gdb) ^M
    FAIL: gdb.mi/mi-var-child.exp: listing of children, simple types: names, type and values, complex types: names and types
    
    -var-set-format weird.func_ptr_ptr natural^M
    ^done,format="natural",value="0x0 <_ftext>"^M
    (gdb) ^M
    FAIL: gdb.mi/mi-var-display.exp: set format variable weird.func_ptr_ptr in natural
    
    In the test, "0x0" is expected, but "0x0 <_ftext>" is in the output.
    Function pointers point to address zero, and tests assume there is no
    symbol on address zero.  However, on my arm-none-eabi target, there is
    a code symbol _ftext on address zero, and test fails.  Note that "set
    print symbol off" doesn't take effect for function pointer.
    
    int (*f) (void);
    f = main;
    
    (gdb) p f
    $1 = (int (*)(void)) 0x8048400 <main>
    (gdb) set print symbol off
    (gdb) p f
    $2 = (int (*)(void)) 0x8048400 <main>
    
    In order to erase the difference, we can assign some function address
    explicitly to function pointer, so the test behaves in a unique way.
    In this patch, we assign nothing1 and nothing2 to function pointers
    func_ptr_struct and func_ptr_ptr respectively, and update test as the
    source file is changed.
    
    gdb/testsuite:
    
    2014-10-14  Yao Qi  <yao@codesourcery.com>
    
    	* gdb.mi/mi-var-child.c (nothing1): New function.
    	(nothing2): New function.
    	(do_children_tests): Set function pointers by nothing1 and
    	nothing2.
    	* gdb.mi/mi-var-child.exp: Step over new added statements.
    	Update test to match the new output.
    	* gdb.mi/var-cmd.c (nothing1): New function.
    	(nothing2): New function.
    	(do_children_tests): Set function pointers by  nothing1 and
    	nothing2.
    	* gdb.mi/mi-var-display.exp: Update test to match output.
    	Step to the line specified by $line_dct_nothing.
    	Increase the number of lines to step.

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=46a93de2ab256dd2cb4e1845a93d9d1ae07b2475

commit 46a93de2ab256dd2cb4e1845a93d9d1ae07b2475
Author: Yao Qi <yao@codesourcery.com>
Date:   Sat Aug 23 20:24:07 2014 +0800

    Use mi_varobj_update in mi-var-child.exp and mi2-var-child.exp
    
    Hi,
    I modify mi-var-child.exp and find that the pattern to match the output
    of -var-update * is quite complicated.  However, it can be simplified by
    using mi_varobj_update.  That is what this patch does.
    
    gdb/testsuite:
    
    2014-10-14  Yao Qi  <yao@codesourcery.com>
    
    	* gdb.mi/mi-var-child.exp: Use mi_varobj_update to simplify
    	tests.
    	* gdb.mi/mi2-var-child.exp: Likewise.

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

Summary of changes:
 gdb/testsuite/ChangeLog                 |   22 +++++++
 gdb/testsuite/gdb.mi/mi-var-child.c     |   16 +++++
 gdb/testsuite/gdb.mi/mi-var-child.exp   |   92 +++++++++++++++++++------------
 gdb/testsuite/gdb.mi/mi-var-display.exp |    2 +-
 gdb/testsuite/gdb.mi/mi2-var-child.exp  |   74 ++++++++++++++-----------
 gdb/testsuite/gdb.mi/var-cmd.c          |   16 +++++
 6 files changed, 152 insertions(+), 70 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]