diff options
author | Nick Roberts <nickrob@snap.net.nz> | 2008-01-23 06:13:44 +0000 |
---|---|---|
committer | Nick Roberts <nickrob@snap.net.nz> | 2008-01-23 06:13:44 +0000 |
commit | 71274a3828cc1cd19300bbd8531c809148357c8d (patch) | |
tree | 5612595c018e0319e1d782d1ea0bd59c3837f0f8 | |
parent | 074348a19ebaa50f95acd6475f9e75183a388b11 (diff) | |
download | gdb-71274a3828cc1cd19300bbd8531c809148357c8d.tar.gz |
(mi_cmd_var_set_format): Add value field to output.
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 2b5cd6d0cc3..96d01f59461 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -231,6 +231,9 @@ mi_cmd_var_set_format (char *command, char **argv, int argc) /* Report the new current format */ ui_out_field_string (uiout, "format", varobj_format_string[(int) format]); + + /* Report the value in the new format */ + ui_out_field_string (uiout, "value", varobj_get_value (var)); return MI_CMD_DONE; } |