projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introduce command_line_up
[deliverable/binutils-gdb.git]
/
gdb
/
guile
/
guile.c
diff --git
a/gdb/guile/guile.c
b/gdb/guile/guile.c
index 27c0a589b9f827bce3899cae81b235fadc01e0c9..9bb2487c546b102ff585f3b610265b5ee0799e3f 100644
(file)
--- a/
gdb/guile/guile.c
+++ b/
gdb/guile/guile.c
@@
-215,10
+215,9
@@
guile_command (char *arg, int from_tty)
}
else
{
}
else
{
-
struct command_line *
l = get_command_line (guile_control, "");
+
command_line_up
l = get_command_line (guile_control, "");
- make_cleanup_free_command_lines (&l);
- execute_control_command_untraced (l);
+ execute_control_command_untraced (l.get ());
}
do_cleanups (cleanup);
}
do_cleanups (cleanup);
@@
-421,11
+420,9
@@
guile_command (char *arg, int from_tty)
{
/* Even if Guile isn't enabled, we still have to slurp the
command list to the corresponding "end". */
{
/* Even if Guile isn't enabled, we still have to slurp the
command list to the corresponding "end". */
- struct command_line *l = get_command_line (guile_control, "");
- struct cleanup *cleanups = make_cleanup_free_command_lines (&l);
+ command_line_up l = get_command_line (guile_control, "");
- execute_control_command_untraced (l);
- do_cleanups (cleanups);
+ execute_control_command_untraced (l.get ());
}
}
}
}
This page took
0.025139 seconds
and
4
git commands to generate.