diff options
Diffstat (limited to 'gdb/progspace.c')
-rw-r--r-- | gdb/progspace.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/progspace.c b/gdb/progspace.c index f6602b7..0f3ac81 100644 --- a/gdb/progspace.c +++ b/gdb/progspace.c @@ -259,7 +259,6 @@ print_program_space (struct ui_out *uiout, int requested) { struct program_space *pspace; int count = 0; - struct cleanup *old_chain; /* Compute number of pspaces we will print. */ ALL_PSPACES (pspace) @@ -273,7 +272,7 @@ print_program_space (struct ui_out *uiout, int requested) /* There should always be at least one. */ gdb_assert (count > 0); - old_chain = make_cleanup_ui_out_table_begin_end (uiout, 3, count, "pspaces"); + ui_out_emit_table table_emitter (uiout, 3, count, "pspaces"); uiout->table_header (1, ui_left, "current", ""); uiout->table_header (4, ui_left, "id", "Id"); uiout->table_header (17, ui_left, "exec", "Executable"); @@ -325,8 +324,6 @@ print_program_space (struct ui_out *uiout, int requested) uiout->text ("\n"); } - - do_cleanups (old_chain); } /* Boolean test for an already-known program space id. */ |