Call some functions in guile/ for effect
[deliverable/binutils-gdb.git] / gdb / interps.h
index a689be56253d361c66153879df2bfdebf6345032..74c9a80918c7ae602053d95c6ca7f112884d3bbb 100644 (file)
@@ -74,8 +74,13 @@ public:
   virtual bool supports_command_editing ()
   { return false; }
 
+  const char *name () const
+  {
+    return m_name;
+  }
+
   /* This is the name in "-i=" and "set interpreter".  */
-  const char *name;
+  const char *m_name;
 
   /* Interpreters are stored in a linked list, this is the next
      one...  */
@@ -111,7 +116,7 @@ public:
 
   ~scoped_restore_interp ()
   {
-    set_interp (m_interp->name);
+    set_interp (m_interp->name ());
   }
 
   scoped_restore_interp (const scoped_restore_interp &) = delete;
This page took 0.025442 seconds and 4 git commands to generate.