diff options
author | Tom Tromey <tom@tromey.com> | 2020-03-13 17:39:52 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2020-03-13 18:03:40 -0600 |
commit | 4dba70eee1fadcb3c1bb50ba17e0fe3512c84180 (patch) | |
tree | 962164e8ba6760e6f2fd5ff49468d8c53b40e1d9 /gdb/printcmd.c | |
parent | 4f9ae810130bc4202ec1c5eae934900c542a9016 (diff) | |
download | gdb-4dba70eee1fadcb3c1bb50ba17e0fe3512c84180.zip gdb-4dba70eee1fadcb3c1bb50ba17e0fe3512c84180.tar.gz gdb-4dba70eee1fadcb3c1bb50ba17e0fe3512c84180.tar.bz2 |
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 <tom@tromey.com>
* printcmd.c (print_formatted): Use value_print_scalar_formatted.
* mips-tdep.c (mips_print_register): Use
value_print_scalar_formatted.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 78d8d3d..645ac4d 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -321,10 +321,7 @@ print_formatted (struct value *val, int size, else /* User specified format, so don't look to the type to tell us what to do. */ - val_print_scalar_formatted (type, - value_embedded_offset (val), - val, - options, size, stream); + value_print_scalar_formatted (val, options, size, stream); } /* Return builtin floating point type of same length as TYPE. |