[PATCH] gdb: make inferior::terminal a unique ptr

Christian Biesinger cbiesinger@google.com
Thu Jun 25 17:18:42 GMT 2020


On Thu, Jun 25, 2020 at 10:55 AM Simon Marchi via Gdb-patches
<gdb-patches@sourceware.org> wrote:
> -    current_inferior ()->terminal = xstrdup (terminal_name);
> +    current_inferior ()->terminal.reset (xstrdup (terminal_name));

Perhaps it really should be a std::string?

Christian


More information about the Gdb-patches mailing list