[reverse RFA] Reset after push_target

Michael Snyder msnyder@vmware.com
Thu Oct 9 03:04:00 GMT 2008


Sounds good.

teawater wrote:
> Hi Michael,
> 
> This patch make record_open reset after push_target because
> push_target will call record_close that use some reset variables.
> 
> 2008-10-08  Hui Zhu  <teawater@gmail.com>
> 
>         * record.c (record_open): Reset after push_target.
> 
> Thanks,
> Hui
> 
> 
> ------------------------------------------------------------------------
> 
> --- a/ChangeLog
> +++ b/ChangeLog
> @@ -1,3 +1,7 @@
> +2008-10-08  Hui Zhu  <teawater@gmail.com>
> +
> +	* record.c (record_open): Reset after push_target.
> +
>  2008-10-07  Hui Zhu  <teawater@gmail.com>
>  
>  	* inflow.c (kill_command): Remove query special for
> --- a/record.c
> +++ b/record.c
> @@ -413,12 +413,12 @@ record_open (char *name, int from_tty)
>  	}
>      }
>  
> +  push_target (&record_ops);
> +
>    /* Reset */
>    record_insn_num = 0;
>    record_list = &record_first;
>    record_list->next = NULL;
> -
> -  push_target (&record_ops);
>  }
>  
>  static void



More information about the Gdb-patches mailing list