From 6b28c1868d6eb7cf9e7e3ee55e8a3c843133c2d0 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Tue, 12 Jun 2001 16:44:36 +0000 Subject: [PATCH] * 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. --- gdb/ChangeLog | 6 ++++++ gdb/ui-out.c | 9 ++++++--- gdb/ui-out.h | 8 ++++---- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6c35cb5a968..2ead54f4b8f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-06-12 Andrew Cagney + + * 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. + Mon Jun 11 17:26:43 2001 Andrew Cagney * source.c (openp): Make parameters ``path'' and ``string'' diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 40e126e6e64..8d60d60ef7a 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); } diff --git a/gdb/ui-out.h b/gdb/ui-out.h index cc7ddaca51e..3abf6ab3207 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -98,14 +98,14 @@ extern void ui_out_table_body (struct ui_out *uiout); extern void ui_out_table_end (struct ui_out *uiout); -/* Compatibility wrappers, new code should use ui_out_begin() and - ui_out_end(). */ +/* Compatibility wrappers. */ -extern void ui_out_list_begin (struct ui_out *uiout); +extern void ui_out_list_begin (struct ui_out *uiout, const char *id); extern void ui_out_list_end (struct ui_out *uiout); -extern struct cleanup *make_cleanup_ui_out_list_begin_end (struct ui_out *uiout); +extern struct cleanup *make_cleanup_ui_out_list_begin_end (struct ui_out *uiout, + const char *id); extern void ui_out_tuple_begin (struct ui_out *uiout, const char *id); -- 2.30.2