Andrew Cagney
e6e5e94cb8
2003-07-18 Andrew Cagney <cagney@redhat.com>
...
* user-regs.h (struct gdbarch): Declare opaque.
* ui-out.h (struct ui_file): Declare opaque.
* dwarf2-frame.h (struct frame_info): Declare opaque.
2003-07-18 19:01:14 +00:00
Daniel Jacobowitz
0fac0b4199
./
...
* 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.
2003-06-28 16:19:07 +00:00
Elena Zannoni
3b31d625f3
2003-02-02 Elena Zannoni <ezannoni@redhat.com>
...
Fix PR gdb/742 gdb/743
* disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
(do_mixed_source_and_assembly): Use
make_cleanup_ui_out_tuple_begin_end and
make_cleanup_ui_out_tuple_begin_end.
(do_mixed_source_and_assembly): Ditto.
* thread.c (do_captured_list_thread_ids): Ditto.
* ui-out.h (ui_out_table_begin, ui_out_list_begin,
ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
ui_out_tuple_end): Delete prototypes.
* ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
ui_out_list_end, ui_out_tuple_end): Delete.
From Kevin Buettner <kevinb@redhat.com>:
* ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
* ui-out.c (make_cleanup_ui_out_table_begin_end)
(do_cleanup_table_end): New functions.
* breakpoint.c (print_it_typical, print_one_breakpoint, mention):
Use cleanups to invoke_ui_out_tuple_end().
(breakpoint_1): Use cleanup to invoke ui_out_table_end().
* cli/cli-setshow.c (cmd_show_list): Use
make_cleanup_ui_out_tuple_begin_end.
2003-02-03 01:18:37 +00:00
Jeff Johnston
52c6a6ac2d
2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
...
* ui-out.h (ui_out_field_fmt_int): New prototype.
* ui-out.c (ui_out_field_fmt_int): New function allowing specification
of field width and alignment.
* stack.c (print_frame_info_base): When printing frame level, use
ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
PR gdb/192
2002-10-03 22:34:58 +00:00
Andrew Cagney
9dc5e2a936
Replace:
...
if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0)
with:
if (ui_out_is_mi_like_p (uiout))
2001-07-06 03:53:11 +00:00
Andrew Cagney
b25959ec59
* ui-out.h (ui_out_table_header): Add parameter ``col_name''.
...
(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.
2001-06-21 15:39:54 +00:00
Andrew Cagney
d63f1d40c6
* ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
...
(default_table_begin): Ditto.
* breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
ui_out_table_begin.
Update everything.
2001-06-19 16:19:16 +00:00
Andrew Cagney
6b28c1868d
* ui-out.c (ui_out_list_begin): Add parameter ``id''.
...
(make_cleanup_ui_out_list_begin_end): Ditto. Open the list.
* ui-out.h: Update declarations.
2001-06-12 16:44:36 +00:00
Andrew Cagney
88379bafe5
s/char */const char */
2001-06-11 16:34:47 +00:00
Andrew Cagney
e2e11a4195
Make char *, const char *.
2001-06-10 00:22:41 +00:00
Andrew Cagney
666547aa9e
s/ui_out_list/ui_out_tupple/
2001-05-12 04:08:24 +00:00
Andrew Cagney
127431f9a7
2001-05-10 Andrew Cagney <ac131313@redhat.com>
...
* ui-out.h (make_cleanup_ui_out_begin_end): Declare.
* ui-out.c (struct ui_out_end_cleanup_data): Define.
(do_cleanup_end): New function. Replace do_list_end.
(make_cleanup_ui_out_end): New function.
(make_cleanup_ui_out_begin_end): New function.
(make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2001-05-10 21:30:37 +00:00
Andrew Cagney
631ec795c9
Replace ui_out_list_{begin,end}() with ui_out_{begin,end}().
2001-05-09 01:33:10 +00:00
Andrew Cagney
80f49b30cf
Use a stack of structures (instead of a simple array) to keep track of
...
the top list.
2001-05-09 00:23:23 +00:00
Andrew Cagney
5bb367b1d9
Eliminate some uses of __STDC__.
2001-03-14 16:42:30 +00:00
Kevin Buettner
b6ba6518e9
Update/correct copyright notices.
2001-03-06 08:22:02 +00:00
Mark Kettenis
e6e0bfabf4
* ui-out.c (do_list_end): New function.
...
(make_cleanup_ui_out_list_end): New function.
* ui-out.h: Provide prototype for make_cleanup_ui_out_list_end.
* stack.c (print_frame) [UI_OUT]: Call
make_cleanup_ui_out_list_end to make sure we mark the end of the
list if we do a non-local exit. At the end of the function,
instead of calling ui_out_list_end directly, let do_cleanups
handle it.
2001-01-27 17:57:53 +00:00
Kevin Buettner
a14ed312fd
PARAMS removal.
2000-05-28 01:12:42 +00:00
Jason Molenda
8b93c6380e
import gdb-2000-02-02 snapshot
2000-02-03 04:14:45 +00:00