diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-19 20:30:11 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-19 20:30:11 +0000 |
commit | 698384cd697ed840db169c7fe177f9021841624f (patch) | |
tree | 6019e15470da4b8d6c5da0161cc81149d872655b /gdb/breakpoint.c | |
parent | 429d935daaf8b8bd56656d15801b6b61412eca3d (diff) | |
download | gdb-698384cd697ed840db169c7fe177f9021841624f.zip gdb-698384cd697ed840db169c7fe177f9021841624f.tar.gz gdb-698384cd697ed840db169c7fe177f9021841624f.tar.bz2 |
* cli-out.c: Include "gdb_assert.h'.
(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.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 90c8503..e8c9c73 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -3657,6 +3657,11 @@ breakpoint_1 (int bnum, int allflag) print_one_breakpoint (b, &last_addr); } + +#ifdef UI_OUT + ui_out_table_end (uiout); +#endif /* UI_OUT */ + if (nr_printable_breakpoints == 0) { #ifdef UI_OUT @@ -3680,9 +3685,6 @@ breakpoint_1 (int bnum, int allflag) set_next_address (last_addr); } -#ifdef UI_OUT - ui_out_table_end (uiout); -#endif /* UI_OUT */ /* FIXME? Should this be moved up so that it is only called when there have been breakpoints? */ annotate_breakpoints_table_end (); |