This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: mi/2549: data-list-register-values igonores the format parameter
- From: Tom Tromey <tromey at redhat dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: pawel dot piech at windriver dot com, gdb at sourceware dot org
- Date: Mon, 10 Nov 2008 17:52:21 -0700
- Subject: Re: mi/2549: data-list-register-values igonores the format parameter
- References: <20081107201949.23460.qmail@sourceware.org> <18711.59624.46811.903567@kahikatea.snap.net.nz>
- Reply-to: tromey at redhat dot com
>>>>> "Nick" == Nick Roberts <nickrob@snap.net.nz> writes:
Nick> FWIW I can see this regression too. I think it's due to this change:
[...]
Please try this patch.
I am sending it through regression testing.
Tom
2008-11-10 Tom Tromey <tromey@redhat.com>
* mi/mi-main.c (get_register): Use get_formatted_print_options.
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index a9fbcad..4554008 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -501,7 +501,7 @@ get_register (int regnum, int format)
else
{
struct value_print_options opts;
- get_user_print_options (&opts);
+ get_formatted_print_options (&opts, format);
opts.deref_ref = 1;
val_print (register_type (current_gdbarch, regnum), buffer, 0, 0,
stb->stream, 0, &opts, current_language);