* inflow.c (copy_terminal_info): Deep copy `run_terminal'.
authorPedro Alves <palves@redhat.com>
Sun, 24 May 2009 18:16:53 +0000 (18:16 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 24 May 2009 18:16:53 +0000 (18:16 +0000)
gdb/ChangeLog
gdb/inflow.c

index d392345df309c2dcfc4bb9abd430503905d7d03d..cd8671b56d58ff1bc26f89b6eb19d943b60a9ee7 100644 (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.
index d71fb8177cb15045a5f8b3dfd98cefd04c39fd91..9ec45dd09015e11b811190921a2cf2781071f446 100644 (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
This page took 0.032185 seconds and 4 git commands to generate.