summaryrefslogtreecommitdiff
path: root/gdb/ui-out.h
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-01-27 17:57:53 +0000
committerMark Kettenis <kettenis@gnu.org>2001-01-27 17:57:53 +0000
commit8b8a5bf645db53e005a2f85733decd905af4af66 (patch)
tree00ea6a052de2f8665cbf87790aeed99f2ffe915d /gdb/ui-out.h
parentc1c4884a9e4442abf0d0993ec213fdb9207f1c5a (diff)
downloadgdb-8b8a5bf645db53e005a2f85733decd905af4af66.tar.gz
* 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.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r--gdb/ui-out.h2
1 files changed, 2 insertions, 0 deletions
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,