gdb/ChangeLog:
* infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
Change-Id: I38b6e753f58947531fe4a293d574bc27ec128f47
+2020-06-25 Simon Marchi <simon.marchi@efficios.com>
+
+ * infcmd.c (set_inferior_io_terminal): Use make_unique_xstrdup.
+
2020-06-25 Simon Marchi <simon.marchi@efficios.com>
* inferior.h (struct inferior) <terminal>: Change type to
set_inferior_io_terminal (const char *terminal_name)
{
if (terminal_name != NULL && *terminal_name != '\0')
- current_inferior ()->terminal.reset (xstrdup (terminal_name));
+ current_inferior ()->terminal = make_unique_xstrdup (terminal_name);
else
current_inferior ()->terminal = NULL;
}