This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Replace interp_set_temp with scoped_restore_interp
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Mon, 11 Sep 2017 23:55:17 -0400
- Subject: [binutils-gdb] Replace interp_set_temp with scoped_restore_interp
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT be0d7abb5e3b0be4cb928845e70a9134f1b19700 ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: be0d7abb5e3b0be4cb928845e70a9134f1b19700
Replace interp_set_temp with scoped_restore_interp
This removes interp_set_temp and an associated cleanup, in favor of a
new RAII class, scoped_restore_interp.
ChangeLog
2017-09-11 Tom Tromey <tom@tromey.com>
* cli/cli-script.c (restore_interp): Remove.
(read_command_lines): Use scoped_restore_interp.
* interps.c (scoped_restore_interp::set_temp): Rename from
interp_set_temp.
* interps.h (class scoped_restore_interp): New.
(interp_set_temp): Remove.