diff options
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/inflow.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d392345d..cd8671b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 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. * thread.c (new_thread): New function. (add_thread_silent): Use it. 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 |