Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Michael Snyder <msnyder@vmware.com>
To: teawater <teawater@gmail.com>
Cc: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [reverse RFA] Change "record-auto-delete" to "record-stop-at-limit"
Date: Wed, 15 Oct 2008 18:46:00 -0000	[thread overview]
Message-ID: <48F639A2.8030002@vmware.com> (raw)
In-Reply-To: <daef60380810150109w2734121ft9ce64c9853f8884a@mail.gmail.com>

Looks ok to me.  ;-)

teawater wrote:
> Hi Michael,
> 
> According to Eli's suggest, Change "record-auto-delete" to
> "record-stop-at-limit".
> 
> 2008-10-15  Hui Zhu  <teawater@gmail.com>
> 
>         Change "record-auto-delete" to "record-stop-at-limit".
> 
>         * record.c (record_insn_max_mode): Change to
>         "record_stop_at_limit".
>         (record_check_insn_num): Ditto.
>         (_initialize_record): Ditto.
> 
> Thanks,
> Hui
> 
> 
> ------------------------------------------------------------------------
> 
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,12 @@
> +2008-10-15  Hui Zhu  <teawater@gmail.com>
> +
> +	Change "record-auto-delete" to "record-stop-at-limit".
> +
> +	* record.c (record_insn_max_mode): Change to
> +	"record_stop_at_limit".
> +	(record_check_insn_num): Ditto.
> +	(_initialize_record): Ditto.
> +
>  2008-10-09  Michael Snyder  <msnyder@vmware.com>
>  
>  	* reverse.c (exec_reverse_once): Eliminate fixed-size buffer,
> --- a/record.c
> +++ b/record.c
> @@ -37,8 +37,8 @@ record_t *record_arch_list_head = NULL;
>  record_t *record_arch_list_tail = NULL;
>  struct regcache *record_regcache = NULL;
>  
> -/* 0 ask user. 1 auto delete the last record_t.  */
> -static int record_insn_max_mode = 0;
> +/* 1 ask user. 0 auto delete the last record_t.  */
> +static int record_stop_at_limit = 1;
>  static int record_insn_max_num = DEFAULT_RECORD_INSN_MAX_NUM;
>  static int record_insn_num = 0;
>  
> @@ -289,17 +289,17 @@ record_check_insn_num (int set_terminal)
>        if (record_insn_num == record_insn_max_num)
>  	{
>  	  /* Ask user how to do */
> -	  if (!record_insn_max_mode)
> +	  if (record_stop_at_limit)
>  	    {
>  	      int q;
>  	      if (set_terminal)
>  		target_terminal_ours ();
> -	      q = yquery (_("The record instruction number (record-insn-number) is equal to record-insn-number-max.  Do you want to open auto delete first record_t function (record-auto-delete)?"));
> +	      q = yquery (_("The record instruction number (record-insn-number) is equal to record-insn-number-max.  Do you want to close record/replay stop when record/replay buffer becomes full(record-stop-at-limit) then auto delete first record_t?"));
>  	      if (set_terminal)
>  		target_terminal_inferior ();
>  	      if (q)
>  		{
> -		  record_insn_max_mode = 1;
> +		  record_stop_at_limit = 0;
>  		}
>  	      else
>  		{
> @@ -1108,11 +1108,14 @@ _initialize_record (void)
>    add_com_alias ("sr", "stoprecord", class_obscure, 1);
>  
>    /* Record instructions number limit command.  */
> -  add_setshow_zinteger_cmd ("record-auto-delete", no_class,
> -			    &record_insn_max_mode,
> -			    _("Set record/replay auto delete mode."),
> -			    _("Show record/replay auto delete mode."), _("\
> -When enabled, if the record/replay buffer becomes full,\n\
> +  add_setshow_boolean_cmd ("record-stop-at-limit", no_class,
> +			    &record_stop_at_limit,
> +			    _("Set record/replay stop when record/replay buffer becomes full."),
> +			    _("Show record/replay stop when record/replay buffer becomes full."), _("\
> +Enable is default value.\n\
> +When enable, if the record/replay buffer becomes full,\n\
> +ask user how to do.\n\
> +When disable, if the record/replay buffer becomes full,\n\
>  delete it and start new recording."), NULL, NULL, &setlist, &showlist);
>    add_setshow_zinteger_cmd ("record-insn-number-max", no_class,
>  			    &record_insn_max_num,


  reply	other threads:[~2008-10-15 18:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-15  8:09 teawater
2008-10-15 18:46 ` Michael Snyder [this message]
2008-10-16  1:54   ` teawater

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=48F639A2.8030002@vmware.com \
    --to=msnyder@vmware.com \
    --cc=gdb-patches@sourceware.org \
    --cc=teawater@gmail.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