aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-12 16:44:36 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-12 16:44:36 +0000
commit6b28c1868d6eb7cf9e7e3ee55e8a3c843133c2d0 (patch)
tree71b5eb5c470fcf866db4219a78c3a721d9b52ac4 /gdb/ui-out.c
parent1e9f9630d4cf7c58040f79187ec32c66bf4384c3 (diff)
downloadgdb-6b28c1868d6eb7cf9e7e3ee55e8a3c843133c2d0.zip
gdb-6b28c1868d6eb7cf9e7e3ee55e8a3c843133c2d0.tar.gz
gdb-6b28c1868d6eb7cf9e7e3ee55e8a3c843133c2d0.tar.bz2
* 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.
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r--gdb/ui-out.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 40e126e..8d60d60 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -344,9 +344,10 @@ specified after table_body.");
}
void
-ui_out_list_begin (struct ui_out *uiout)
+ui_out_list_begin (struct ui_out *uiout,
+ const char *id)
{
- ui_out_begin (uiout, ui_out_type_list, NULL);
+ ui_out_begin (uiout, ui_out_type_list, id);
}
void
@@ -418,8 +419,10 @@ make_cleanup_ui_out_tuple_begin_end (struct ui_out *uiout,
}
struct cleanup *
-make_cleanup_ui_out_list_begin_end (struct ui_out *uiout)
+make_cleanup_ui_out_list_begin_end (struct ui_out *uiout,
+ const char *id)
{
+ ui_out_list_begin (uiout, id);
return make_cleanup_ui_out_end (uiout, ui_out_type_list);
}