diff options
author | Tom Tromey <tom@tromey.com> | 2017-10-16 17:26:09 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2017-10-19 15:58:11 -0600 |
commit | 54f70bc14586878ee14891ecb11efb8a90405874 (patch) | |
tree | 6553f42c303cf2756cb6196bb7f1ad62cfe93860 /gdb/value.h | |
parent | 49a4ce2eae231ae627ab9a312256c6e402b5a27e (diff) | |
download | gdb-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/value.h')
-rw-r--r-- | gdb/value.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index bc97ec0..fb6f81f 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -730,6 +730,10 @@ class scoped_value_mark free_to_mark (); } + scoped_value_mark (scoped_value_mark &&other) = default; + + DISABLE_COPY_AND_ASSIGN (scoped_value_mark); + /* Free the values currently on the value stack. */ void free_to_mark () { |