GDB (xrefs)
|
#include "mi-out.h"
Classes | |
struct | mi_progress_info |
Public Member Functions | |
mi_ui_out (int mi_version) | |
virtual | ~mi_ui_out () |
void | rewind () |
void | put (struct ui_file *stream) |
int | version () |
bool | can_emit_style_escape () const override |
![]() | |
ui_out (ui_out_flags flags=0) | |
virtual | ~ui_out () |
void | push_level (ui_out_type type) |
void | pop_level (ui_out_type type) |
void | table_begin (int nr_cols, int nr_rows, const std::string &tblid) |
void | table_header (int width, ui_align align, const std::string &col_name, const std::string &col_hdr) |
void | table_body () |
void | table_end () |
void | begin (ui_out_type type, const char *id) |
void | end (ui_out_type type) |
void | field_signed (const char *fldname, LONGEST value) |
void | field_fmt_signed (int width, ui_align align, const char *fldname, LONGEST value) |
void | field_unsigned (const char *fldname, ULONGEST value) |
void | field_core_addr (const char *fldname, struct gdbarch *gdbarch, CORE_ADDR address) |
void | field_string (const char *fldname, const char *string, const ui_file_style &style=ui_file_style()) |
void | field_string (const char *fldname, const std::string &string, const ui_file_style &style=ui_file_style()) |
void | field_stream (const char *fldname, string_file &stream, const ui_file_style &style=ui_file_style()) |
void | field_skip (const char *fldname) |
void | field_fmt (const char *fldname, const char *format,...) ATTRIBUTE_PRINTF(3 |
void void | field_fmt (const char *fldname, const ui_file_style &style, const char *format,...) ATTRIBUTE_PRINTF(4 |
void void void | spaces (int numspaces) |
void | text (const char *string) |
void | text (const std::string &string) |
void | message (const char *format,...) ATTRIBUTE_PRINTF(2 |
void void | vmessage (const ui_file_style &in_style, const char *format, va_list args) ATTRIBUTE_PRINTF(3 |
void void void | wrap_hint (int indent) |
void | flush () |
void | redirect (ui_file *outstream) |
ui_out_flags | test_flags (ui_out_flags mask) |
bool | is_mi_like_p () const |
bool | query_table_field (int colno, int *width, int *alignment, const char **col_name) |
Protected Member Functions | |
virtual void | do_table_begin (int nbrofcols, int nr_rows, const char *tblid) override |
virtual void | do_table_body () override |
virtual void | do_table_header (int width, ui_align align, const std::string &col_name, const std::string &col_hdr) override |
virtual void | do_table_end () override |
virtual void | do_begin (ui_out_type type, const char *id) override |
virtual void | do_end (ui_out_type type) override |
virtual void | do_field_signed (int fldno, int width, ui_align align, const char *fldname, LONGEST value) override |
virtual void | do_field_unsigned (int fldno, int width, ui_align align, const char *fldname, ULONGEST value) override |
virtual void | do_field_skip (int fldno, int width, ui_align align, const char *fldname) override |
virtual void | do_field_string (int fldno, int width, ui_align align, const char *fldname, const char *string, const ui_file_style &style) override |
virtual void | do_field_fmt (int fldno, int width, ui_align align, const char *fldname, const ui_file_style &style, const char *format, va_list args) override ATTRIBUTE_PRINTF(7 |
virtual void virtual void | do_spaces (int numspaces) override |
virtual void | do_text (const char *string) override |
virtual void | do_message (const ui_file_style &style, const char *format, va_list args) override ATTRIBUTE_PRINTF(3 |
virtual void virtual void | do_wrap_hint (int indent) override |
virtual void | do_flush () override |
virtual void | do_redirect (struct ui_file *outstream) override |
virtual bool | do_is_mi_like_p () const override |
virtual void | do_progress_start () override |
virtual void | do_progress_notify (const std::string &, const char *, double, double) override |
virtual void | do_progress_end () override |
Private Member Functions | |
void | field_separator () |
void | open (const char *name, ui_out_type type) |
void | close (ui_out_type type) |
string_file * | main_stream () |
Static Private Member Functions | |
static ui_out_flags | make_flags (int mi_version) |
Private Attributes | |
std::vector< mi_progress_info > | m_progress_info |
bool | m_suppress_field_separator |
bool | m_suppress_output |
int | m_mi_version |
std::vector< ui_file * > | m_streams |
|
explicit |
|
inlineoverridevirtual |
|
private |
Definition at line 233 of file mi-out.c.
References gdb_putc(), m_streams, m_suppress_field_separator, ui_out_type_list, and ui_out_type_tuple.
Referenced by do_end(), do_table_body(), do_table_end(), and do_table_header().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Reimplemented from ui_out.
Definition at line 144 of file mi-out.c.
References field_separator(), gdb_printf(), gdb_puts(), gdb_vprintf(), and m_streams.
|
overrideprotectedvirtual |
Implements ui_out.
Definition at line 99 of file mi-out.c.
References do_field_string().
Referenced by do_table_begin(), and do_table_header().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements ui_out.
Definition at line 128 of file mi-out.c.
References field_separator(), gdb_printf(), m_streams, and ui_file::putstr().
Referenced by do_field_signed(), do_field_unsigned(), and do_table_header().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
inlineoverrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements ui_out.
Definition at line 274 of file mi-out.c.
References gdb_printf(), and m_progress_info.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements ui_out.
Definition at line 35 of file mi-out.c.
References do_field_signed(), open(), ui_left, ui_out_type_list, and ui_out_type_tuple.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements ui_out.
Definition at line 57 of file mi-out.c.
References close(), ui_out_type_list, and ui_out_type_tuple.
|
overrideprotectedvirtual |
Implements ui_out.
Definition at line 66 of file mi-out.c.
References close(), do_field_signed(), do_field_string(), open(), ui_center, and ui_out_type_tuple.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
private |
Definition at line 198 of file mi-out.c.
References gdb_putc(), m_streams, and m_suppress_field_separator.
Referenced by do_field_fmt(), do_field_string(), and open().
|
private |
|
inlinestaticprivate |
Definition at line 119 of file mi-out.h.
References fix_breakpoint_script_output, fix_multi_location_breakpoint_output, and flags.
|
private |
Definition at line 207 of file mi-out.c.
References field_separator(), gdb_printf(), gdb_putc(), m_streams, m_suppress_field_separator, name, ui_out_type_list, and ui_out_type_tuple.
Referenced by do_begin(), do_table_begin(), do_table_body(), and do_table_header().
void mi_ui_out::put | ( | struct ui_file * | stream | ) |
Definition at line 305 of file mi-out.c.
References string_file::clear(), string_file::data(), main_stream(), string_file::size(), and ui_file::write().
Referenced by mi_out_put().
void mi_ui_out::rewind | ( | ) |
Definition at line 297 of file mi-out.c.
References string_file::clear(), and main_stream().
Referenced by mi_out_rewind().
int mi_ui_out::version | ( | ) |
Definition at line 316 of file mi-out.c.
References m_mi_version.
|
private |
|
private |
Definition at line 110 of file mi-out.h.
Referenced by do_progress_end(), do_progress_notify(), and do_progress_start().
|
private |
Definition at line 139 of file mi-out.h.
Referenced by close(), do_field_fmt(), do_field_string(), do_flush(), do_redirect(), do_wrap_hint(), field_separator(), main_stream(), mi_ui_out(), and open().
|
private |
Definition at line 136 of file mi-out.h.
Referenced by close(), field_separator(), and open().