diff options
author | Tom Tromey <tromey@adacore.com> | 2023-02-23 10:45:47 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-03-14 08:16:39 -0600 |
commit | d0aa28e155baf16ec37afdf0193c3d58816c1927 (patch) | |
tree | cd62ed889ad6e8a5ed1ff19708f8eca92e1de947 /gdb/valprint.c | |
parent | 8176838655f6e1174cae2e3670ba172fa7b232db (diff) | |
download | fsf-binutils-gdb-d0aa28e155baf16ec37afdf0193c3d58816c1927.zip fsf-binutils-gdb-d0aa28e155baf16ec37afdf0193c3d58816c1927.tar.gz fsf-binutils-gdb-d0aa28e155baf16ec37afdf0193c3d58816c1927.tar.bz2 |
Hide the implementation of gdb_mpf
This renames the data member of gdb_mpf and makes it private. It also
adds a single new method to aid in this change. Unlike the earlier
changes here, I did this one all together because gdb_mpf has very few
uses.
Diffstat (limited to 'gdb/valprint.c')
-rw-r--r-- | gdb/valprint.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valprint.c b/gdb/valprint.c index 357db38..b05d90d 100644 --- a/gdb/valprint.c +++ b/gdb/valprint.c @@ -856,7 +856,7 @@ generic_val_print_fixed_point (struct value *val, struct ui_file *stream, type->fixed_point_scaling_factor ()); const char *fmt = type->length () < 4 ? "%.11Fg" : "%.17Fg"; - std::string str = gmp_string_printf (fmt, f.val); + std::string str = f.str (fmt); gdb_printf (stream, "%s", str.c_str ()); } } |