2012-03-27 Pedro Alves <palves@redhat.com>
Eliminate struct ui_stream. * ui-out.h (struct ui_stream): Delete. (ui_out_field_stream): Adjust prototype. (ui_out_stream_new, ui_out_stream_delete) (make_cleanup_ui_out_stream_delete): Delete declarations. * ui-out.c (ui_out_field_stream): Change prototype to take a ui_file instead of a ui_stream. Adjust. (ui_out_stream_new, ui_out_stream_delete, do_stream_delete) (make_cleanup_ui_out_stream_delete): Delete. * breakpoint.c (print_breakpoint_location) (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. * disasm.c (dump_insns): Ditto. (do_mixed_source_and_assembly, do_assembly_only): Adjust prototype. (gdb_disassembly): Use ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. * infcmd.c (print_return_value): Ditto. * osdata.c (info_osdata_command): Don't allocate a local ui_stream. * stack.c (print_frame_arg, print_frame_args, print_frame): Use ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. * tracepoint.c (print_one_static_tracepoint_marker): Don't allocate a local ui_stream. * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. (list_args_or_locals): Don't allocate a local ui_stream. * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression) (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new. * cli/cli-setshow.c (do_setshow_command): Ditto.
This commit is contained in:
parent
72508ac0bf
commit
f99d8bf46c
12 changed files with 140 additions and 158 deletions
19
gdb/ui-out.h
19
gdb/ui-out.h
|
@ -52,17 +52,6 @@ enum ui_flags
|
|||
};
|
||||
|
||||
|
||||
/* The ui_out stream structure. */
|
||||
/* NOTE: cagney/2000-02-01: The ui_stream object can be subsumed by
|
||||
the more generic ui_file object. */
|
||||
|
||||
struct ui_stream
|
||||
{
|
||||
struct ui_out *uiout;
|
||||
struct ui_file *stream;
|
||||
};
|
||||
|
||||
|
||||
/* Prototypes for ui-out API. */
|
||||
|
||||
/* A result is a recursive data structure consisting of lists and
|
||||
|
@ -122,7 +111,7 @@ extern void ui_out_field_string (struct ui_out * uiout, const char *fldname,
|
|||
const char *string);
|
||||
|
||||
extern void ui_out_field_stream (struct ui_out *uiout, const char *fldname,
|
||||
struct ui_stream *buf);
|
||||
struct ui_file *stream);
|
||||
|
||||
extern void ui_out_field_fmt (struct ui_out *uiout, const char *fldname,
|
||||
const char *format, ...)
|
||||
|
@ -138,12 +127,6 @@ extern void ui_out_message (struct ui_out *uiout, int verbosity,
|
|||
const char *format, ...)
|
||||
ATTRIBUTE_PRINTF (3, 4);
|
||||
|
||||
extern struct ui_stream *ui_out_stream_new (struct ui_out *uiout);
|
||||
|
||||
extern void ui_out_stream_delete (struct ui_stream *buf);
|
||||
|
||||
struct cleanup *make_cleanup_ui_out_stream_delete (struct ui_stream *buf);
|
||||
|
||||
extern void ui_out_wrap_hint (struct ui_out *uiout, char *identstring);
|
||||
|
||||
extern void ui_out_flush (struct ui_out *uiout);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue