From 8b8a5bf645db53e005a2f85733decd905af4af66 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 27 Jan 2001 17:57:53 +0000 Subject: * ui-out.c (do_list_end): New function. (make_cleanup_ui_out_list_end): New function. * ui-out.h: Provide prototype for make_cleanup_ui_out_list_end. * stack.c (print_frame) [UI_OUT]: Call make_cleanup_ui_out_list_end to make sure we mark the end of the list if we do a non-local exit. At the end of the function, instead of calling ui_out_list_end directly, let do_cleanups handle it. --- gdb/ui-out.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/ui-out.h') diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 4a45dc85a4b..17454d20326 100644 --- a/gdb/ui-out.h +++ b/gdb/ui-out.h @@ -81,6 +81,8 @@ extern void ui_out_list_begin (struct ui_out *uiout, char *lstid); extern void ui_out_list_end (struct ui_out *uiout); +extern struct cleanup *make_cleanup_ui_out_list_end (struct ui_out *uiout); + extern void ui_out_field_int (struct ui_out *uiout, char *fldname, int value); extern void ui_out_field_core_addr (struct ui_out *uiout, char *fldname, -- cgit v1.2.1