aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 03:16:15 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 03:16:15 +0000
commitb02eeafb146d5938518304f2b29697ed3c53f82d (patch)
tree963565e55c99f28b16ed6a7b3fcaf27b3d209ad5
parentc2f1343c8b32713ccf65984725f6b170cddb884f (diff)
downloadgdb-b02eeafb146d5938518304f2b29697ed3c53f82d.zip
gdb-b02eeafb146d5938518304f2b29697ed3c53f82d.tar.gz
gdb-b02eeafb146d5938518304f2b29697ed3c53f82d.tar.bz2
Use make_cleanup_ui_out_stream_delete().
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/breakpoint.c4
-rw-r--r--gdb/command.c2
-rw-r--r--gdb/printcmd.c2
-rw-r--r--gdb/stack.c2
5 files changed, 11 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 6af6997..5a811b8 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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 ``;''.
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 89b1590..98bd236 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -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
diff --git a/gdb/command.c b/gdb/command.c
index 43f2a7e..d753d77 100644
--- a/gdb/command.c
+++ b/gdb/command.c
@@ -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. */
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index 85571ab..d9c3b24 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -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)
diff --git a/gdb/stack.c b/gdb/stack.c
index 8684b7b..afa6041 100644
--- a/gdb/stack.c
+++ b/gdb/stack.c
@@ -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);