This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add "name" method to class interp
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 12 Sep 2018 00:30:24 -0400
- Subject: [binutils-gdb] Add "name" method to class interp
*** TEST RESULTS FOR COMMIT d525a99be1b02dda6c69007e31dd06f276378aea ***
Author: Tom Tromey <tom@tromey.com>
Branch: master
Commit: d525a99be1b02dda6c69007e31dd06f276378aea
Add "name" method to class interp
In a review Pedro pointed out that interp::name is intended to be
read-only, and so an accessor would be a better fit. This patch
renames the field and adds a "name" method that is used instead.
ChangeLog
2018-05-25 Tom Tromey <tom@tromey.com>
* tui/tui.c (tui_enable): Update.
* mi/mi-interp.c (mi_interp::init): Update.
* interps.h (class interp) <name>: New method.
<m_name>: Rename from name.
(~scoped_restore_interp): Update.
* interps.c (interp::interp): Update.
(interp_add, interp_set, interp_lookup_existing)
(current_interp_named_p): Update.