aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2000-05-15 11:48:50 +0000
committerAndrew Cagney <cagney@redhat.com>2000-05-15 11:48:50 +0000
commit47cf603ed45d09dceda47b6da42a1d88a141ad82 (patch)
treee0123e6c4917f0538ac93cfcc7b89c0c62d83da9 /gdb/mi
parent4f0aafb38abea1590b4a720c5ef1516cf25289b4 (diff)
downloadgdb-47cf603ed45d09dceda47b6da42a1d88a141ad82.zip
gdb-47cf603ed45d09dceda47b6da42a1d88a141ad82.tar.gz
gdb-47cf603ed45d09dceda47b6da42a1d88a141ad82.tar.bz2
Cleanup cleanups - delete use of make_cleanup_func as cast.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/ChangeLog-mi6
-rw-r--r--gdb/mi/mi-cmd-var.c6
-rw-r--r--gdb/mi/mi-main.c4
3 files changed, 10 insertions, 6 deletions
diff --git a/gdb/mi/ChangeLog-mi b/gdb/mi/ChangeLog-mi
index 7aae9a9..d2eafae 100644
--- a/gdb/mi/ChangeLog-mi
+++ b/gdb/mi/ChangeLog-mi
@@ -1,3 +1,9 @@
+Mon May 15 16:17:56 2000 Andrew Cagney <cagney@b1.cygnus.com>
+
+ * mi-main.c (mi_cmd_data_assign, mi_cmd_data_evaluate_expression),
+ mi-cmd-var.c (mi_cmd_var_create, mi_cmd_var_delete): Delete
+ make_cleanup_func casts. Not needed.
+
2000-05-07 Eli Zaretskii <eliz@is.elta.co.il>
* gdbmi.texinfo: Lots of typos and grammar fixes from Brian
diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c
index a20f4f1..b2d6aae 100644
--- a/gdb/mi/mi-cmd-var.c
+++ b/gdb/mi/mi-cmd-var.c
@@ -61,8 +61,7 @@ mi_cmd_var_create (char *command, char **argv, int argc)
name = xstrdup (argv[0]);
/* Add cleanup for name. Must be free_current_contents as
name can be reallocated */
- old_cleanups = make_cleanup ((make_cleanup_func) free_current_contents,
- &name);
+ old_cleanups = make_cleanup (free_current_contents, &name);
frame = xstrdup (argv[1]);
old_cleanups = make_cleanup (free, frame);
@@ -128,8 +127,7 @@ mi_cmd_var_delete (char *command, char **argv, int argc)
name = xstrdup (argv[0]);
/* Add cleanup for name. Must be free_current_contents as
name can be reallocated */
- old_cleanups = make_cleanup ((make_cleanup_func) free_current_contents,
- &name);
+ old_cleanups = make_cleanup (free_current_contents, &name);
/* If we have one single argument it cannot be '-c' or any string
starting with '-'. */
diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c
index 3153da7..22745a0 100644
--- a/gdb/mi/mi-main.c
+++ b/gdb/mi/mi-main.c
@@ -640,7 +640,7 @@ mi_cmd_data_assign (char *command, char **argv, int argc)
01-12-1999: Need to decide what to do with this for libgdb purposes. */
expr = parse_expression (argv[0]);
- old_chain = make_cleanup ((make_cleanup_func) free_current_contents, &expr);
+ old_chain = make_cleanup (free_current_contents, &expr);
evaluate_expression (expr);
do_cleanups (old_chain);
return MI_CMD_DONE;
@@ -669,7 +669,7 @@ mi_cmd_data_evaluate_expression (char *command, char **argv, int argc)
expr = parse_expression (argv[0]);
- old_chain = make_cleanup ((make_cleanup_func) free_current_contents, &expr);
+ old_chain = make_cleanup (free_current_contents, &expr);
val = evaluate_expression (expr);