aboutsummaryrefslogtreecommitdiff
path: root/gdb/inflow.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-05-24 18:16:53 +0000
committerPedro Alves <palves@redhat.com>2009-05-24 18:16:53 +0000
commit98b54c187e1f56d5b7397e36c6d88551ff75699f (patch)
tree4b861d2ea3fb865bacefaa50ff45a75cf244a8ee /gdb/inflow.c
parente58b0e63bb0a42e99f6fb1e6d697a1b29caa02c2 (diff)
downloadgdb-98b54c187e1f56d5b7397e36c6d88551ff75699f.zip
gdb-98b54c187e1f56d5b7397e36c6d88551ff75699f.tar.gz
gdb-98b54c187e1f56d5b7397e36c6d88551ff75699f.tar.bz2
* inflow.c (copy_terminal_info): Deep copy `run_terminal'.
Diffstat (limited to 'gdb/inflow.c')
-rw-r--r--gdb/inflow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/inflow.c b/gdb/inflow.c
index d71fb81..9ec45dd 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