* inflow.c (copy_terminal_info): Deep copy `run_terminal'.

This commit is contained in:
Pedro Alves 2009-05-24 18:16:53 +00:00
parent e58b0e63bb
commit 98b54c187e
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2009-05-24 Pedro Alves <pedro@codesourcery.com>
* inflow.c (copy_terminal_info): Deep copy `run_terminal'.
2009-05-24 Pedro Alves <pedro@codesourcery.com>
* gdbthread.h (struct thread_info): New `pending_follow' field.

View file

@ -492,7 +492,8 @@ copy_terminal_info (struct inferior *to, struct inferior *from)
{
*to->terminal_info = *from->terminal_info;
if (from->terminal_info->run_terminal)
to->terminal_info->run_terminal = from->terminal_info->run_terminal;
to->terminal_info->run_terminal
= xstrdup (from->terminal_info->run_terminal);
}
void