aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-10-16 17:26:09 -0600
committerTom Tromey <tom@tromey.com>2017-10-19 15:58:11 -0600
commit54f70bc14586878ee14891ecb11efb8a90405874 (patch)
tree6553f42c303cf2756cb6196bb7f1ad62cfe93860 /gdb/top.h
parent49a4ce2eae231ae627ab9a312256c6e402b5a27e (diff)
downloadgdb-54f70bc14586878ee14891ecb11efb8a90405874.zip
gdb-54f70bc14586878ee14891ecb11efb8a90405874.tar.gz
gdb-54f70bc14586878ee14891ecb11efb8a90405874.tar.bz2
Remove cleanups from prepare_execute_command
This changes prepare_execute_command to return a scoped_value_mark rather than a cleanup. ChangeLog 2017-10-19 Tom Tromey <tom@tromey.com> * mi/mi-main.c (mi_cmd_execute): Update. * top.h (prepare_execute_command): Return scoped_value_mark. * value.h (class scoped_value_mark): Use DISABLE_COPY_AND_ASSIGN. Add move constructor. * top.c (prepare_execute_command): Return scoped_value_mark. (execute_command): Update.
Diffstat (limited to 'gdb/top.h')
-rw-r--r--gdb/top.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/top.h b/gdb/top.h
index ab21e5e..ab65ddb 100644
--- a/gdb/top.h
+++ b/gdb/top.h
@@ -22,6 +22,7 @@
#include "buffer.h"
#include "event-loop.h"
+#include "value.h"
struct tl_interp_info;
@@ -249,7 +250,7 @@ extern void check_frame_language_change (void);
/* Prepare for execution of a command.
Call this before every command, CLI or MI.
Returns a cleanup to be run after the command is completed. */
-extern struct cleanup *prepare_execute_command (void);
+extern scoped_value_mark prepare_execute_command (void);
/* This function returns a pointer to the string that is used
by gdb for its command prompt. */