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 | 00ee63486b0b19591c1f5a5f03577b230b73353f (patch) | |
tree | 20a503ba0d9069ca4c22a7f8373d5629b3528503 /gdb/mi | |
parent | b4d7c9a6eb3c1a9e0e2f67810c9d1a14eca4b5de (diff) | |
download | binutils-00ee63486b0b19591c1f5a5f03577b230b73353f.zip binutils-00ee63486b0b19591c1f5a5f03577b230b73353f.tar.gz binutils-00ee63486b0b19591c1f5a5f03577b230b73353f.tar.bz2 |
(mi_cmd_var_set_format): Add value field to output.
Diffstat (limited to 'gdb/mi')
-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 2b5cd6d..96d01f5 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; } |