]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Use make_cleanup_ui_out_stream_delete().
authorAndrew Cagney <cagney@redhat.com>
Mon, 15 May 2000 03:16:15 +0000 (03:16 +0000)
committerAndrew Cagney <cagney@redhat.com>
Mon, 15 May 2000 03:16:15 +0000 (03:16 +0000)
gdb/ChangeLog
gdb/breakpoint.c
gdb/command.c
gdb/printcmd.c
gdb/stack.c

index 6af69972297418526dea28643b563e97f66479b9..5a811b8cb8f64b15e1dd64bf75d5833151c789ee 100644 (file)
@@ -1,3 +1,9 @@
+Mon May 15 12:07:55 2000  Andrew Cagney  <cagney@b1.cygnus.com>
+
+       * printcmd.c (print_frame_args), stack.c (print_frame), command.c
+       (do_setshow_command), breakpoint.c (print_it_typical, mention):
+       Use make_cleanup_ui_out_stream_delete.
+
 Mon May 15 11:23:23 2000  Andrew Cagney  <cagney@b1.cygnus.com>
 
        * proc-events.c (init_syscall_table): Delete stray ``;''.
index 89b15909a71777579acefd89e09d28a5356f7c55..98bd2367a88177fc131c2d8b15c612998733701c 100644 (file)
@@ -1939,7 +1939,7 @@ print_it_typical (bs)
   struct cleanup *old_chain;
   struct ui_stream *stb;
   stb = ui_out_stream_new (uiout);
-  old_chain = make_cleanup ((make_cleanup_func) ui_out_stream_delete, stb);
+  old_chain = make_cleanup_ui_out_stream_delete (stb);
 #endif /* UI_OUT */
   /* bs->breakpoint_at can be NULL if it was a momentary breakpoint
      which has since been deleted.  */
@@ -4458,7 +4458,7 @@ mention (b)
   struct ui_stream *stb;
 
   stb = ui_out_stream_new (uiout);
-  old_chain = make_cleanup ((make_cleanup_func) ui_out_stream_delete, stb);
+  old_chain = make_cleanup_ui_out_stream_delete (stb);
 #endif /* UI_OUT */
 
   /* FIXME: This is misplaced; mention() is called by things (like hitting a
index 43f2a7e73848ae32b2668ad0b79f41a01e1e5b5a..d753d77fef37307dd4b5a9710054d159b8ef936c 100644 (file)
@@ -1723,7 +1723,7 @@ do_setshow_command (arg, from_tty, c)
       int quote;
 
       stb = ui_out_stream_new (uiout);
-      old_chain = make_cleanup ((make_cleanup_func) ui_out_stream_delete, stb);
+      old_chain = make_cleanup_ui_out_stream_delete (stb);
 #endif /* UI_OUT */
 
       /* Print doc minus "show" at start.  */
index 85571ab305ee1e887527167e1aeaf05e24b20b16..d9c3b2469e7566dfc2f791bdcd67da750421de03 100644 (file)
@@ -1852,7 +1852,7 @@ print_frame_args (func, fi, num, stream)
   struct ui_stream *stb;
 
   stb = ui_out_stream_new (uiout);
-  old_chain = make_cleanup (ui_out_stream_delete, stb);
+  old_chain = make_cleanup_ui_out_stream_delete (stb);
 #endif /* UI_OUT */
 
   if (func)
index 8684b7b7b9cf02c191fd779560ea3ebbe39a5f57..afa6041d79ccdff0ff571d69ccc0aa4a6e2f7034 100644 (file)
@@ -471,7 +471,7 @@ print_frame (struct frame_info *fi,
   struct cleanup *old_chain;
 
   stb = ui_out_stream_new (uiout);
-  old_chain = make_cleanup ((make_cleanup_func) ui_out_stream_delete, stb);
+  old_chain = make_cleanup_ui_out_stream_delete (stb);
 #endif /* UI_OUT */
 
   func = find_pc_function (fi->pc);