summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-19 20:30:11 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-19 20:30:11 +0000
commit65bc176d8c8517316955195dfb2ecb7891ca4f5e (patch)
tree5c5387df579faad77a8d9437000ebf93a76c8fd8 /gdb/breakpoint.c
parent45fee2496ed6790b3387cf9d712b2a051e3ba359 (diff)
downloadgdb-65bc176d8c8517316955195dfb2ecb7891ca4f5e.tar.gz
* 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.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 90c85032daf..e8c9c7390ce 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 ();