This changes ui_out to make is_mi_like_p and do_is_mi_like_p "const".
ChangeLog
2018-04-30 Tom Tromey <tom@tromey.com>
* ui-out.c: Update.
* cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
* ui-out.h (ui_out::is_mi_like_p): Now const.
(ui_out::do_is_mi_like_p): Now const.
* mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
+2018-04-30 Tom Tromey <tom@tromey.com>
+
+ * ui-out.c: Update.
+ * cli-out.h (cli_ui_out::do_is_mi_like_p): Update.
+ * ui-out.h (ui_out::is_mi_like_p): Now const.
+ (ui_out::do_is_mi_like_p): Now const.
+ * mi/mi-out.h (mi_ui_out::do_is_mi_like_p): Update.
+
2018-04-30 Tom Tromey <tom@tromey.com>
* varobj.c (varobj_set_visualizer): Use new_reference.
virtual void do_flush () override;
virtual void do_redirect (struct ui_file *outstream) override;
- virtual bool do_is_mi_like_p () override
+ virtual bool do_is_mi_like_p () const override
{ return true; }
private:
}
bool
-ui_out::is_mi_like_p ()
+ui_out::is_mi_like_p () const
{
return do_is_mi_like_p ();
}
a hack to encapsulate that test. Once GDB manages to separate the
CLI/MI from the core of GDB the problem should just go away .... */
- bool is_mi_like_p ();
+ bool is_mi_like_p () const;
bool query_table_field (int colno, int *width, int *alignment,
const char **col_name);
/* Set as not MI-like by default. It is overridden in subclasses if
necessary. */
- virtual bool do_is_mi_like_p ()
+ virtual bool do_is_mi_like_p () const
{ return false; }
private: