diff options
author | Tom Tromey <tromey@adacore.com> | 2023-03-16 10:12:17 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-03-20 07:21:03 -0600 |
commit | 0fea10f327466dbe949aef39cef5a6bdea91163f (patch) | |
tree | 856ea4c65cf04fcb4c8f9e59a117511314f01843 /gdb/ui-out.h | |
parent | 442716d400655e252f3faf93ae17ec410e73869d (diff) | |
download | gdb-0fea10f327466dbe949aef39cef5a6bdea91163f.zip gdb-0fea10f327466dbe949aef39cef5a6bdea91163f.tar.gz gdb-0fea10f327466dbe949aef39cef5a6bdea91163f.tar.bz2 |
Make ui_out::do_progress_end 'private'
I noticed that ui_out::do_progress_end is public, just to support one
use in debuginfod-support.c. This patch makes it private, updates
progress_info to call it from its destructor, and finally changes
debuginfod-support.c to follow.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r-- | gdb/ui-out.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index c7ae669..ba5b1de 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -302,7 +302,7 @@ class ui_out ~progress_update () { - + m_uiout->do_progress_end (); } progress_update (const progress_update &) = delete; @@ -321,14 +321,13 @@ class ui_out { m_uiout->do_progress_notify (msg, "", -1, -1); } + private: struct ui_out *m_uiout; }; - virtual void do_progress_end () = 0; - - protected: +protected: virtual void do_table_begin (int nbrofcols, int nr_rows, const char *tblid) = 0; @@ -365,6 +364,7 @@ class ui_out virtual void do_progress_start () = 0; virtual void do_progress_notify (const std::string &, const char *, double, double) = 0; + virtual void do_progress_end () = 0; /* Set as not MI-like by default. It is overridden in subclasses if necessary. */ |