diff options
author | Mark Kettenis <kettenis@gnu.org> | 2001-01-27 17:57:53 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2001-01-27 17:57:53 +0000 |
commit | e6e0bfabf47cb6ac3f5df9f87ee9d9940e3078d8 (patch) | |
tree | 357f95b9dde0b2aa2ed6cb457dafeeb2fce86c63 /gdb/ui-out.h | |
parent | 9d969b59b8458cfe9cc8a555dc7b98b3b7c6dcaa (diff) | |
download | binutils-e6e0bfabf47cb6ac3f5df9f87ee9d9940e3078d8.zip binutils-e6e0bfabf47cb6ac3f5df9f87ee9d9940e3078d8.tar.gz binutils-e6e0bfabf47cb6ac3f5df9f87ee9d9940e3078d8.tar.bz2 |
* 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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h index 4a45dc8..17454d2 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, |