From 4dba70eee1fadcb3c1bb50ba17e0fe3512c84180 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 13 Mar 2020 17:39:52 -0600 Subject: Two simple uses of value_print_scalar_formatted A couple of spots could be easily converted to use value_print_scalar_formatted. This patch makes this change. gdb/ChangeLog 2020-03-13 Tom Tromey * printcmd.c (print_formatted): Use value_print_scalar_formatted. * mips-tdep.c (mips_print_register): Use value_print_scalar_formatted. --- gdb/mips-tdep.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/mips-tdep.c') diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 2599f82..c6952a5 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -6373,10 +6373,7 @@ mips_print_register (struct ui_file *file, struct frame_info *frame, fprintf_filtered (file, ": "); get_formatted_print_options (&opts, 'x'); - val_print_scalar_formatted (value_type (val), - value_embedded_offset (val), - val, - &opts, 0, file); + value_print_scalar_formatted (val, &opts, 0, file); } /* Print IEEE exception condition bits in FLAGS. */ -- cgit v1.1