[PATCH] MI: Add value field to output of -var-create

Nick Roberts
2007-01-02T10:07:54Z

This patch just adds the value field to the output of var-create so that
the frontend doesn't need to issue another command to find out what it
is.

If approved, I'll change the tests and documentation accordingly.

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

2007-01-02 Nick Roberts <nickrob@snap.net.nz>

* mi/mi-cmd-var.c (mi_cmd_var_create): Add value field.

*** mi-cmd-var.c 08 Dec 2006 15:04:16 +1300 1.27
--- mi-cmd-var.c 27 Dec 2006 13:51:09 +1300
*************** mi_cmd_var_create (char *command, char *
*** 125,131 ****
if (var == NULL)
error (_("mi_cmd_var_create: unable to create variable object"));

! print_varobj (var, PRINT_NO_VALUES, 0 /* don't print expression */);

do_cleanups (old_cleanups);
return MI_CMD_DONE;
--- 125,131 ----
if (var == NULL)
error (_("mi_cmd_var_create: unable to create variable object"));

! print_varobj (var, PRINT_ALL_VALUES, 0 /* don't print expression */);

do_cleanups (old_cleanups);
return MI_CMD_DONE;