diff options
author | Tom Tromey <tromey@adacore.com> | 2022-03-04 11:40:49 -0700 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2022-03-10 10:11:38 -0700 |
commit | fdda16e1fa9637f9b6ca846eebe881cd2901d75a (patch) | |
tree | b6d0e59fcba33405c300de8df67af3c7dbc8d62b /gdb/debuginfod-support.c | |
parent | 00e5d9e9da89cef94810d9d6fdb5bea403269d8d (diff) | |
download | binutils-fdda16e1fa9637f9b6ca846eebe881cd2901d75a.zip binutils-fdda16e1fa9637f9b6ca846eebe881cd2901d75a.tar.gz binutils-fdda16e1fa9637f9b6ca846eebe881cd2901d75a.tar.bz2 |
Simplify the ui-out progress API
I noticed that 'progress' is a method on ui-out, but it seems to me
that it would be better if the only API were via the progress_meter
class. This patch makes this change, changing progress to be a method
on the meter itself.
Diffstat (limited to 'gdb/debuginfod-support.c')
-rw-r--r-- | gdb/debuginfod-support.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/debuginfod-support.c b/gdb/debuginfod-support.c index b44ce67..e077e13 100644 --- a/gdb/debuginfod-support.c +++ b/gdb/debuginfod-support.c @@ -129,7 +129,7 @@ progressfn (debuginfod_client *c, long cur, long total) data->meter.emplace (current_uiout, message, 1); } - current_uiout->progress ((double)cur / (double)total); + data->meter->progress ((double)cur / (double)total); return 0; } |