gdb: make inferior::terminal a unique ptr
[deliverable/binutils-gdb.git] / gdb / inferior.h
index 95af474eedeb77a025565c1f43bb7dd25f929759..5002b0b8b3d31d370038e1a01b4e4bc07de9eeb6 100644 (file)
@@ -52,6 +52,7 @@ struct thread_info;
 #include "symfile-add-flags.h"
 #include "gdbsupport/refcounted-object.h"
 #include "gdbsupport/forward-scope-exit.h"
+#include "gdbsupport/gdb_unique_ptr.h"
 
 #include "gdbsupport/common-inferior.h"
 #include "gdbthread.h"
@@ -456,7 +457,7 @@ public:
   gdb::unique_xmalloc_ptr<char> cwd;
 
   /* The name of terminal device to use for I/O.  */
-  char *terminal = NULL;
+  gdb::unique_xmalloc_ptr<char> terminal;
 
   /* The terminal state as set by the last target_terminal::terminal_*
      call.  */
This page took 0.023702 seconds and 4 git commands to generate.