Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <palves@redhat.com>
To: Yao Qi <yao@codesourcery.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] remove set_tfile_traceframe and cur_traceframe_number
Date: Fri, 27 Jul 2012 14:09:00 -0000	[thread overview]
Message-ID: <5012A0E3.8000808@redhat.com> (raw)
In-Reply-To: <1340804875-23979-1-git-send-email-yao@codesourcery.com>

On 06/27/2012 02:47 PM, Yao Qi wrote:
> Hi,
> I can't see the necessity to use function set_tfile_traceframe and
> variable cur_traceframe_number.  IIUC, both set_tfile_traceframe
> and cur_traceframe_number are equivalent to remote.c:set_remote_traceframe
> and remote.c:remote_traceframe_number.  set_remote_traceframe
> and remote_traceframe_number are used to switch between traceframe
> and live inferior in a lazy mode.  However, this requirement doesn't
> exists in tfile, because GDB only reads from trace file.  This is
> the reason I propose to remove them.  Regression tested on native
> and gdbserver on x86_64-linux.  OK to apply?


OK.  Thanks.

Nits:

> 2012-06-27  Yao Qi  <yao@codesourcery.com>
> 
> 	* tracepoint.c (set_tfile_traceframe): Removed.

"Remove."

> 	(tfile_trace_find, tfile_fetch_registers): Update callers.
> 	(tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
> 	Remove cur_traceframe_number.

This is a global.  So should be:

 	(cur_traceframe_number): Remove.

and should be first thing in the entry.

-- 
Pedro Alves


      parent reply	other threads:[~2012-07-27 14:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-27 13:48 Yao Qi
2012-07-05 13:28 ` [ping]: " Yao Qi
2012-07-23 16:07 ` Yao Qi
2012-07-23 16:39   ` Pedro Alves
2012-07-27  8:11     ` Yao Qi
2012-07-27 14:09 ` Pedro Alves [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5012A0E3.8000808@redhat.com \
    --to=palves@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=yao@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox