aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r--gdb/ui-out.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 7953326..0d36639 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -281,6 +281,18 @@ ui_out_list_end (struct ui_out *uiout)
uiout->list_flag--;
}
+static void
+do_list_end (void *uiout)
+{
+ ui_out_list_end (uiout);
+}
+
+struct cleanup *
+make_cleanup_ui_out_list_end (struct ui_out *uiout)
+{
+ return make_cleanup (do_list_end, uiout);
+}
+
void
ui_out_field_int (struct ui_out *uiout, char *fldname, int value)
{