From 98b54c187e1f56d5b7397e36c6d88551ff75699f Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Sun, 24 May 2009 18:16:53 +0000 Subject: [PATCH] * inflow.c (copy_terminal_info): Deep copy `run_terminal'. --- gdb/ChangeLog | 4 ++++ gdb/inflow.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d392345df30..cd8671b56d5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2009-05-24 Pedro Alves + + * inflow.c (copy_terminal_info): Deep copy `run_terminal'. + 2009-05-24 Pedro Alves * gdbthread.h (struct thread_info): New `pending_follow' field. diff --git a/gdb/inflow.c b/gdb/inflow.c index d71fb8177cb..9ec45dd0901 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -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 -- 2.30.2