diff options
author | Tom Tromey <tom@tromey.com> | 2018-04-29 23:12:07 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-05-25 12:41:01 -0600 |
commit | da505cff6e29b18244dc9f6886bcb4d436263dee (patch) | |
tree | 14ff1a222df1429bb31f1cd9bd50806b872efd6a /gdb/interps.h | |
parent | 29f943408122a7cffa25abb41def99833436f097 (diff) | |
download | binutils-da505cff6e29b18244dc9f6886bcb4d436263dee.zip binutils-da505cff6e29b18244dc9f6886bcb4d436263dee.tar.gz binutils-da505cff6e29b18244dc9f6886bcb4d436263dee.tar.bz2 |
Remove interp_name
This removes the interp_name function. It is only used a few spots --
one of which was only calling it on "this". It's simpler to remove
it; and should class interp become opaque in the future, it will be
just as easy to update the two remaining spots to use an accessor.
ChangeLog
2018-05-25 Tom Tromey <tom@tromey.com>
* interps.c (interp_name): Remove.
* mi/mi-interp.c (mi_interp::init): Update.
* interps.h (interp_name): Remove.
(~scoped_restore_interp): Update.
* tui/tui.c (tui_enable): Update.
Diffstat (limited to 'gdb/interps.h')
-rw-r--r-- | gdb/interps.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/interps.h b/gdb/interps.h index 694149a..a689be5 100644 --- a/gdb/interps.h +++ b/gdb/interps.h @@ -98,8 +98,6 @@ extern struct interp *interp_lookup (struct ui *ui, const char *name); interpreter fails to initialize. */ extern void set_top_level_interpreter (const char *name); -extern const char *interp_name (struct interp *interp); - /* Temporarily set the current interpreter, and reset it on destruction. */ class scoped_restore_interp @@ -113,7 +111,7 @@ public: ~scoped_restore_interp () { - set_interp (interp_name (m_interp)); + set_interp (m_interp->name); } scoped_restore_interp (const scoped_restore_interp &) = delete; |