aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-out.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mi/mi-out.h')
-rw-r--r--gdb/mi/mi-out.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/mi/mi-out.h b/gdb/mi/mi-out.h
index e82d44d..fea94f2 100644
--- a/gdb/mi/mi-out.h
+++ b/gdb/mi/mi-out.h
@@ -30,7 +30,7 @@ class mi_ui_out : public ui_out
{
public:
- explicit mi_ui_out (int mi_version, ui_file *stream);
+ explicit mi_ui_out (int mi_version);
virtual ~mi_ui_out ();
/* MI-specific */
@@ -78,6 +78,11 @@ private:
void open (const char *name, ui_out_type type);
void close (ui_out_type type);
+ /* Convenience method that returns the MI out's string stream cast
+ to its appropriate type. Assumes/asserts that output was not
+ redirected. */
+ string_file *main_stream ();
+
bool m_suppress_field_separator;
bool m_suppress_output;
int m_mi_version;