[PATCH] free_all_values in MI

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] free_all_values in MI

Nick Roberts

Currently, in MI, free_all_values only really gets called via the asynchronous
commands from execute_command.  This patch ensures that it is called more
often, and more reliably (the asynchronous commands might one day be
implemented directly without use of execute_command).


--
Nick                                           http://www.inet.net.nz/~nickrob


2007-01-23  Nick Roberts  <[hidden email]>

        * mi/mi-main.c: Call free_all_values.


*** mi-main.c 23 Jan 2007 20:20:12 +1300 1.90
--- mi-main.c 23 Jan 2007 20:21:56 +1300
*************** mi_execute_command (char *cmd, int from_
*** 1191,1196 ****
--- 1191,1198 ----
  static enum mi_cmd_result
  mi_cmd_execute (struct mi_parse *parse)
  {
+   free_all_values ();
+
    if (parse->cmd->argv_func != NULL
        || parse->cmd->args_func != NULL)
      {
Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] free_all_values in MI

Daniel Jacobowitz-2
On Tue, Jan 23, 2007 at 08:35:56PM +1300, Nick Roberts wrote:
>
> Currently, in MI, free_all_values only really gets called via the asynchronous
> commands from execute_command.  This patch ensures that it is called more
> often, and more reliably (the asynchronous commands might one day be
> implemented directly without use of execute_command).

OK, thanks.

--
Daniel Jacobowitz
CodeSourcery