Add an optional "alias" attribute to syscall entries.
[deliverable/binutils-gdb.git] / gdb / interps.h
index a689be56253d361c66153879df2bfdebf6345032..dbf91f18e8327b57a5d3f35623995291f7fbe353 100644 (file)
@@ -74,11 +74,18 @@ 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;
+private:
+  char *m_name;
 
   /* Interpreters are stored in a linked list, this is the next
      one...  */
+public:
   struct interp *next;
 
   /* Has the init method been run?  */
@@ -111,7 +118,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.025999 seconds and 4 git commands to generate.