Re: mi/2549: data-list-register-values igonores the format parameter

Tom Tromey
2008-11-11T00:53:12Z

>>>>> "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);