From: Nick Roberts <nickrob@snap.net.nz>
To: gdb-patches@sources.redhat.com
Subject: [PATCH]: MI -var-set-format
Date: Tue, 02 May 2006 06:19:00 -0000 [thread overview]
Message-ID: <17494.64020.26176.277202@farnswood.snap.net.nz> (raw)
Currently:
-var-evaluate-expression var1
^done,value="18"
-var-set-format var1 hexadecimal
^done,format="hexadecimal"
-var-set-format just repeats the format that has been set which is not
very useful since presumably the front end sent it in the first place.
I would like to add the value in the (new) current format, which I find
much more useful:
-var-set-format var1 hexadecimal
^done,format="hexadecimal",value="0x12"
OK to apply if I update the testsuite accordingly?
--
Nick http://www.inet.net.nz/~nickrob
2006-05-02 Nick Roberts <nickrob@snap.net.nz>
* mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
*** mi-cmd-var.c 31 Mar 2006 12:46:48 +1200 1.23
--- mi-cmd-var.c 02 May 2006 18:16:39 +1200
***************
*** 211,216 ****
--- 211,219 ----
/* 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;
}
next reply other threads:[~2006-05-02 6:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-02 6:19 Nick Roberts [this message]
2006-05-05 18:11 ` Daniel Jacobowitz
2006-05-05 23:30 ` Nick Roberts
2006-05-15 17:07 ` Daniel Jacobowitz
2006-05-16 3:46 ` Nick Roberts
2008-01-22 20:13 ` Daniel Jacobowitz
2008-01-23 3:25 ` Nick Roberts
2008-01-23 3:48 ` Daniel Jacobowitz
2008-01-23 6:24 ` Nick Roberts
2008-01-23 13:17 ` Daniel Jacobowitz
2008-01-23 21:17 ` Nick Roberts
2008-01-23 21:24 ` Daniel Jacobowitz
2008-01-23 22:30 ` Nick Roberts
2008-01-24 21:49 Marc Khouzam
2008-01-25 10:38 ` Eli Zaretskii
2008-01-25 15:46 ` Marc Khouzam
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=17494.64020.26176.277202@farnswood.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox