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


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  f73023dd06cb038bdb212d05064b03e38fd7d9db (commit)
       via  5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7 (commit)
       via  1ee79381dd9cc2438a61fe4a96294682744d2458 (commit)
       via  1ca49d376dec6a93e879bc9456617622d7e349b3 (commit)
       via  a283690eb7320dfe4074301c673f6cc3dd21fb11 (commit)
       via  12e03cd06ada8ca7e62fa52aa84946256c1bc654 (commit)
       via  11395323794268a9945dd31eb46905e975d87b3d (commit)
       via  7951c4eb08bdb6843989e4dfdddbd7cad5e1fd9c (commit)
      from  cb5111bcea8f96585f8b85270bc3c6c796ceebad (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=f73023dd06cb038bdb212d05064b03e38fd7d9db

commit f73023dd06cb038bdb212d05064b03e38fd7d9db
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Dec 16 21:13:36 2013 +0800

    Revert previous tweaks
    
    As we migrate to the new to_xfer_partial interface, some of previous
    tweaks become unnecessary, we don't have to check traceframe is
    selected in each target implementation, so this patch below is
    reverted.
    
      [PATCH] Send qXfer:traceframe-info:read when traceframe is selected.
      https://sourceware.org/ml/gdb-patches/2013-10/msg00752.html
    
    Third, to_traceframe_info is only called when traceframe is selected,
    that means it is only called when target is remote, tfile or ctf, so
    this patch can be partially reverted,
    
      https://sourceware.org/ml/gdb-patches/2013-04/msg00000.html
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	Revert two patches:
    
    	2013-10-25  Yao Qi  <yao@codesourcery.com>
    
    	* remote.c (remote_traceframe_info): Return early if
    	traceframe is not selected.
    
    	2013-07-19  Yao Qi  <yao@codesourcery.com>
    
    	* target.c (update_current_target): Change the default action
    	of 'to_traceframe_info' from tcomplain to return_zero.
    	* target.h (struct target_ops) <to_traceframe_info>: Add more
    	comments.

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

commit 5a2eb0ef7f9b879c2bbe7b18183353e1d59c93c7
Author: Yao Qi <yao@codesourcery.com>
Date:   Tue Nov 5 09:50:21 2013 +0800

    Adjust read_value_memory to use to_xfer_partial
    
    As the new to_xfer_partial implementations are done in ctf and tfile
    targets, read_value_memory can be simplified a lot.  Call
    target_xfer_partial in a loop, check return value, and set bytes
    unavailable when necessary.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* valops.c (read_value_memory): Rewrite it.  Call
    	target_xfer_partial in a loop.
    	* exec.h (section_table_available_memory): Remove declaration.
    	Move comments to ...
    	* exec.c (section_table_available_memory): ... here.  Make it static.

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

commit 1ee79381dd9cc2438a61fe4a96294682744d2458
Author: Yao Qi <yao@codesourcery.com>
Date:   Tue Feb 11 12:20:05 2014 +0800

    Use new to_xfer_partial interface in ctf and tfile target
    
    This patch adjust both ctf and tfile target implementation of to_xfer_partial,
    to return TARGET_XFER_E_UNAVAILABLE and set *XFERED_LEN if data is
    unavailable.  Note that some code on xfer in exec.c can be shared, but
    we can do it in a separate pass later.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* exec.c (section_table_read_available_memory): New function.
    	* exec.h (section_table_read_available_memory): Declare.
    	* ctf.c (ctf_xfer_partial): Call
    	section_table_read_available_memory.
    	* tracefile-tfile.c (tfile_xfer_partial): Likewise.

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

commit 1ca49d376dec6a93e879bc9456617622d7e349b3
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Feb 10 17:17:32 2014 +0800

    Share code on to_xfer_partial for tfile and ctf target
    
    In the to_xfer_partial implementations of ctf and tfile, the code on
    reading from read-only sections is duplicated.  This patch moves it to
    a separate function exec_read_partial_read_only.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* ctf.c (ctf_xfer_partial): Move code to ...
    	* exec.c (exec_read_partial_read_only): ... it.  New function.
    	* tracefile-tfile.c (tfile_xfer_partial): Likewise.
    	* tracefile.c: Include "exec.h".
    	* exec.h (exec_read_partial_read_only): Declare.

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

commit a283690eb7320dfe4074301c673f6cc3dd21fb11
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Feb 10 15:28:33 2014 +0800

    Let tracefile has_memory and has_all_memory.
    
    At present, tfile target thinks it has memory but ctf doesn't.
    This is an oversight when I added ctf target support.  This patch
    moves the implementations of to_has_all_memory and to_has_memory to
    upper layer.  After this change, both tfile and ctf target think
    they have memory.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* tracefile-tfile.c (tfile_has_all_memory): Remove.
    	(tfile_has_memory): Remove.
    	(init_tfile_ops): Don't set fields to_has_all_memory and
    	to_has_memory of tfile_ops.
    	* tracefile.c (tracefile_has_all_memory): New function.
    	(tracefile_has_memory): New function.
    	(init_tracefile_ops): Initialize fields to_has_all_memory and
    	to_has_memory of 'ops'.

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

commit 12e03cd06ada8ca7e62fa52aa84946256c1bc654
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Feb 10 15:22:55 2014 +0800

    Share some code between ctf and tfile target.
    
    This patch move the duplicated code between tfile and ctf
    targets into file tracefile.c.  The common part of target_ops
    fields are set in init_tracefile_ops.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* ctf.c (ctf_has_stack, ctf_has_registers): Remove.
    	(ctf_thread_alive, ctf_get_trace_status): Remove.
    	(init_ctf_ops): Don't set some fields of ctf_ops.  Call
    	init_tracefile_ops.
    	* tracefile-tfile.c (tfile_get_trace_status): Remove.
    	(tfile_has_stack, tfile_has_registers): Remove.
    	(tfile_thread_alive): Remove.
    	(init_tfile_ops): Don't set some fields of tfile_ops.  Call
    	init_tracefile_ops.
    	* tracefile.c (tracefile_has_stack): New function.
    	(tracefile_has_registers): New function.
    	(tracefile_thread_alive): New function.
    	(tracefile_get_trace_status): New function.
    	(init_tracefile_ops): New function.
    	* tracefile.h (init_tracefile_ops): Declare.

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

commit 11395323794268a9945dd31eb46905e975d87b3d
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Feb 10 14:38:26 2014 +0800

    Move tfile target to tracefile-tfile.c
    
    This patch moves tfile target related code from tracepoint.c to
    tracefile-tfile.c.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* tracepoint.c (TFILE_PID): Move it to tracefile-tfile.c.
    	(O_LARGEFILE): Likewise.
    	(tfile_ops): Likewise.
    	(TRACE_HEADER_SIZE): Likewise.
    	(trace_fd, trace_frames_offset, cur_offset): Likewise.
    	(cur_data_size): Likewise.
    	(tfile_read, tfile_open, tfile_interp_line): Likewise.
    	(tfile_close, tfile_files_info): Likewise.
    	(tfile_get_trace_status): Likewise.
    	(tfile_get_tracepoint_status): Likewise.
    	(tfile_get_traceframe_address): Likewise.
    	(tfile_trace_find, match_blocktype): Likewise.
    	(traceframe_walk_blocks, traceframe_find_block_type): Likewise.
    	(tfile_fetch_registers, tfile_xfer_partial): Likewise.
    	(tfile_get_trace_state_variable_value): Likewise.
    	(tfile_has_all_memory, tfile_has_memory): Likewise.
    	(tfile_has_stack, tfile_has_registers): Likewise.
    	(tfile_thread_alive, build_traceframe_info): Likewise.
    	(tfile_traceframe_info, init_tfile_ops): Likewise.
    	(_initialize_tracepoint): Don't call init_tfile_ops
    	and add_target_with_completer.
    	* tracefile-tfile.c: Include regcache.h, inferior.h, gdbthread.h,
    	exec.h, completer.h and filenames.h.
    	(_initialize_tracefile_tfile): New function.

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

commit 7951c4eb08bdb6843989e4dfdddbd7cad5e1fd9c
Author: Yao Qi <yao@codesourcery.com>
Date:   Mon Feb 10 13:31:12 2014 +0800

    Move trace file writer out of tracepoint.c
    
    This patch is a refactor which moves trace file writer related code
    out of tracepoint.c, which has 6k LOC.  It moves general trace file
    writer to a new file tracefile.c and moves tfile specific writer to
    tracefile-tfile.c.
    
    gdb:
    
    2014-02-23  Yao Qi  <yao@codesourcery.com>
    
    	* Makefile.in (REMOTE_OBS): Append tracefile.o and
    	tracefile-tfile.o.
    	(HFILES_NO_SRCDIR): Add tracefile.h.
    	* ctf.c: Include "tracefile.h".
    	* tracefile.h: New file.
    	* tracefile.c: New file
    	* tracefile-tfile.c: New file.
    	* tracepoint.c: Include "tracefile.h".
    	(free_uploaded_tps, free_uploaded_tsvs): Remove declarations.
    	(stop_reason_names): Add const.
    	(trace_file_writer_xfree): Move it to tracefile.c.
    	(trace_save, trace_save_command, trace_save_tfile): Likewise.
    	(trace_save_ctf): Likewise.
    	(struct tfile_trace_file_writer): Move it to tracefile-tfile.c.
    	(tfile_target_save, tfile_dtor, tfile_start): Likewise.
    	(tfile_write_header, tfile_write_regblock_type): Likewise.
    	(tfile_write_status, tfile_write_uploaded_tsv): Likewise.
    	(tfile_write_uploaded_tp, tfile_write_definition_end): Likewise.
    	(tfile_write_raw_data, tfile_end): Likewise.
    	(tfile_trace_file_writer_new): Likewise.
    	(free_uploaded_tp): Make it extern.
    	(free_uploaded_tsv): Make it extern.
    	(_initialize_tracepoint): Move code to register command 'tsave'
    	to tracefile.c.
    	* tracepoint.h (stop_reason_names): Declare.
    	(struct trace_frame_write_ops): Move it to tracefile.h.
    	(struct trace_file_write_ops): Likewise.
    	(struct trace_file_writer): Likewise.
    	(free_uploaded_tsvs, free_uploaded_tps): Declare.

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

Summary of changes:
 gdb/ChangeLog         |  129 +++++
 gdb/Makefile.in       |    4 +-
 gdb/ctf.c             |   94 +---
 gdb/exec.c            |  108 ++++-
 gdb/exec.h            |   24 +-
 gdb/remote.c          |    5 -
 gdb/target.h          |   17 +-
 gdb/tracefile-tfile.c | 1079 +++++++++++++++++++++++++++++++++++
 gdb/tracefile.c       |  462 +++++++++++++++
 gdb/tracefile.h       |  116 ++++
 gdb/tracepoint.c      | 1489 +------------------------------------------------
 gdb/tracepoint.h      |  110 +----
 gdb/valops.c          |   96 +---
 13 files changed, 1953 insertions(+), 1780 deletions(-)
 create mode 100644 gdb/tracefile-tfile.c
 create mode 100644 gdb/tracefile.c
 create mode 100644 gdb/tracefile.h


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]