summaryrefslogtreecommitdiff
path: root/gdb
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
commit1c1762d030cb792b5c2dc3bb29cf609b99e9928e (patch)
treefc071ff9d367f0fc637670f648454c73daba0556 /gdb
parentd1ab032b4fe4c392348c1d36a7e25f10203d49cd (diff)
downloadgdb-1c1762d030cb792b5c2dc3bb29cf609b99e9928e.tar.gz
* 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')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/ui-out.c9
-rw-r--r--gdb/ui-out.h8
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 <ac131313@redhat.com>
+
+ * 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 <cagney@b1.cygnus.com>
* 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);