summaryrefslogtreecommitdiff
path: root/gdb/cli-out.c
Commit message (Collapse)AuthorAgeFilesLines
* Index: mi/ChangeLogAndrew Cagney2003-10-241-1/+1
| | | | | | | | | | | | | | | | | | | 2003-10-24 Andrew Cagney <cagney@redhat.com> * tui-out.c: Fix "fortunatly"[sic]. Index: doc/ChangeLog 2003-10-24 Andrew Cagney <cagney@redhat.com> * annotate.texinfo: Fix "fortunatly"[sic]. 2003-10-24 Andrew Cagney <cagney@redhat.com> * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic]. * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto. * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto. * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto. * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
* ./Daniel Jacobowitz2003-06-281-0/+22
| | | | | | | | | | | | | | | | | | | | | * cli/cli-logging.c: New file. * cli-out.c (struct ui_out_data): Add original_stream. (cli_redirect): New function. (cli_ui_out_impl): Add cli_redirect. (cli_out_new): Initialize original_stream. * ui-out.c (default_ui_out_impl): Add NULL for redirect member. (uo_redirect, ui_out_redirect): New. * ui-out.h (struct ui_out_impl): Add redirect member. (redirect_ftype): New. (ui_out_redirect): Add prototype. * Makefile.in: Add rules for cli-logging.c. * NEWS: Mention "set logging". mi/ * mi-out.c (mi_ui_out_impl): Add NULL for redirect member. tui/ * tui-out.c (tui_ui_out_impl): Add NULL for redirect member. doc/ * gdb.texinfo (Logging output): New chapter.
* Index: ChangeLogAndrew Cagney2003-03-081-20/+21
| | | | | | | | | | | | | | | | | | | 2003-03-08 Andrew Cagney <cagney@redhat.com> * cli-out.c: Update copyright. (cli_out_data): Define typedef. Use instead of ui_out_data. Index: mi/ChangeLog 2003-03-08 Andrew Cagney <cagney@redhat.com> * mi-out.c: Update copyright. (mi_out_data): Define typedef. Use instead of ui_out_data. Index: tui/ChangeLog 2003-03-08 Andrew Cagney <cagney@redhat.com> * tui-out.c: Update copyright. (tui_out_data): Define typedef. Use instead of ui_out_data.
* 2003-02-05 Jim Ingham <jingham@apple.com>Andrew Cagney2003-02-061-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keith Seitz <keiths@redhat.com> Elena Zannoni <ezannoni@redhat.com> Andrew Cagney <ac131313@redhat.com> * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o". (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c". (SUBDIR_MI_OBS): Add "mi-interp.o". (SUBDIR_MI_SRCS): Add "mi/mi-interp.c". (SFILES): Add "interps.c". (COMMON_OBS): Add "interps.o". (interps_h, mi_main_h): Define. (interps.o, cli-interp.o, mi-interp.o): Add dependencies. (mi-main.o, main.o, event-top.o): Update dependencies. * cli/cli-interp.c: New file. * interps.h, interps.c: New files. * top.c: (gdb_init): Don't install the default interpreter, handed by captured_main. * main.c: Include "interps.h". (interpreter_p): Note that it should malloc'ed. (captured_command_loop): Call current_interp_command_loop. (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use xfree and xstrdup when updating interpreter_p. Install the default interpreter. Add hack to stop mi1's copyright notice being encoded. * event-top.h (gdb_setup_readline): Declare. (gdb_disable_readline): Declare. * event-top.c: Include "interps.h". (display_gdb_prompt): Call current_interp_display_prompt_p. (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr, gdb_stdlog, and gdb_stdtarg. (_initialize_event_loop): Don't call gdb_setup_readline. * cli-out.c (cli_out_set_stream): New function. * cli-out.h (cli_out_set_stream): Declare.
* * defs.h (XMALLOC): Define.Andrew Cagney2002-03-191-7/+3
| | | | | | | | | | | | | | | | | | | | | * gdb-events.sh (XMALLOC): Delete macro. * gdb-events.c, gdb-events.h: Regenerate. * gdbarch.sh (XMALLOC): Delete macro. * gdbarch.c: Regenerate. * serial.c (XMALLOC): Delete macro. * ui-file.c (XMALLOC): Ditto. * ser-unix.h (XMALLOC): Ditto. * sh-tdep.c (XMALLOC): Ditto. * ui-out.c (XMALLOC): Ditto. * utils.c (XMALLOC): Ditto. * i386-tdep.c (XMALLOC): Ditto. * gdb-events.c (XMALLOC): Ditto. * d10v-tdep.c (XMALLOC): Ditto. * cli-out.c (XMALLOC): Ditto. * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright. * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto. * ui-file.c, ui-out.c: Ditto.
* Replace:Andrew Cagney2001-07-061-1/+2
| | | | | | if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0) with: if (ui_out_is_mi_like_p (uiout))
* * cli-out.c (cli_out_new): Initialize new structure memberKeith Seitz2001-06-211-0/+1
| | | | "suppress_output".
* * ui-out.h (ui_out_table_header): Add parameter ``col_name''.Andrew Cagney2001-06-211-1/+2
| | | | | | | | | | | | | (table_header_ftype): Ditto. * cli-out.c (cli_table_header): Update. * ui-out.c (ui_out_table_header): Update. (uo_table_header): Update. (default_table_header): Update. (append_header_to_list): Update. (struct ui_out_header): Add field ``col_name''. (append_header_to_list): Use xstrdup. Initialize col_name. * breakpoint.c (breakpoint_1): Pass COL_NAME to ui_out_table_header.
* * cli-out.c: Include "gdb_assert.h'.Andrew Cagney2001-06-191-0/+45
| | | | | | | | | | | | | (struct ui_out_data): Add field ``suppress_output. (cli_table_begin): When NR_ROWS is zero, suppress_output. (cli_table_end): Clear suppress_output. (cli_table_body): Check suppress_output. (cli_table_header, cli_begin): Ditto. (cli_end, cli_field_int, cli_field_skip): Ditto. (cli_field_string, cli_field_fmt, cli_spaces): Ditto. (cli_text, cli_message, cli_wrap_hint): Ditto. * breakpoint.c (breakpoint_1): Close the ui_out table before printing the breakpoint not found message.
* * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.Andrew Cagney2001-06-191-1/+2
| | | | | | | (default_table_begin): Ditto. * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to ui_out_table_begin. Update everything.
* Make char *, const char *.Andrew Cagney2001-06-101-21/+32
|
* Replace ui_out_list_{begin,end}() with ui_out_{begin,end}().Andrew Cagney2001-05-091-6/+12
|
* Update/correct copyright notices.Kevin Buettner2001-03-061-1/+1
|
* Protoization.gdb-post-protoization-2000-07-29Kevin Buettner2000-07-301-46/+17
|
* PARAMS removal.gdb-post-params-removal-2000-05-28Kevin Buettner2000-05-281-1/+1
|
* 2000-03-30 Michael Snyder <msnyder@cleaver.cygnus.com>Michael Snyder2000-03-301-0/+1
| | | | | | | | | * ui-file.c: Include "gdb_string.h" * cli-out.c: Include gdb_string.h to avoid compiler warnings. * wrapper.[ch] (struct gdb_wrapper_arguments): Change fields into unions, since they are all used to hold both pointers and ints at various times. Casting pointer to int and vice versa gives warnings (and is not safe) if they are not the same size.
* 2000-02-19 Philippe De Muyter <phdm@macqel.be>Fernando Nasser2000-02-201-4/+4
| | | | | | * cli-out.c (cli_table_header): Type of parameter `alignment' is `enum ui_align', not `int'. (cli_field_string, cli_field_skip): Likewise.
* Initial revisionJason Molenda2000-02-031-0/+339