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. 2d6f0de676f46ebd8bb7d98a0093aa081e17e94b


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  2d6f0de676f46ebd8bb7d98a0093aa081e17e94b (commit)
      from  67ad4d71d6e7f2a58fa9034d3b4ffbf418da29f4 (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=2d6f0de676f46ebd8bb7d98a0093aa081e17e94b

commit 2d6f0de676f46ebd8bb7d98a0093aa081e17e94b
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Jun 30 11:47:51 2014 +0800

    Tweak gdb.trace/tfile.c for thumb mode
    
    We see the fail below happens on thumb related multi-libs
    (-mthumb -march={armv4t,armv7-a}),
    
    target tfile tfile-basic.tf ^M
    warning: Uploaded tracepoint 1 has no source location, using raw address^M
    warning: Breakpoint address adjusted from 0x00008959 to 0x00008958.^M
    Tracepoint 3 at 0x8958: file /scratch/yqi/arm-none-linux-gnueabi/src/gdb-trunk/gdb/testsuite/gdb.trace/tfile.c, line 91.^M
    Created tracepoint 3 for target's tracepoint 1 at 0x8959.^M
    warning: Breakpoint address adjusted from 0x00008959 to 0x00008958.^M
    warning: Breakpoint address adjusted from 0x00008959 to 0x00008958.^M
    warning: Breakpoint address adjusted from 0x00008959 to 0x00008958.^M
    (gdb) FAIL: gdb.trace/tfile.exp: complete-command 'target tfile'
    
    The address of write_basic_trace_file is two-bytes aligned,
    
    (gdb) p write_basic_trace_file
    $1 = {void (void)} 0x8958 <write_basic_trace_file>
    
    but the ld sets the LSB of every reference to the function address
    (indicating the address is in thumb mode), so "&write_basic_trace_file"
    in the program becomes 0x8959, which is saved in the trace file.  That
    is why the warnnings are emitted.
    
    This patch is to clear the LSB of the function address written to trace
    file in thumb and thumb2 mode.  This patch fixes the fail above.
    
    gdb/testsuite:
    
    2014-07-10  Yao Qi  <yao@codesourcery.com>
    
    	* gdb.trace/tfile.c (write_basic_trace_file)
    	[__thumb__||__thumb2__]: Clear the Thumb bit of the function
    	address written to trace file.

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

Summary of changes:
 gdb/testsuite/ChangeLog         |    6 ++++++
 gdb/testsuite/gdb.trace/tfile.c |   11 +++++++++--
 2 files changed, 15 insertions(+), 2 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]