~ubuntu-branches/ubuntu/quantal/gdb/quantal

« back to all changes in this revision

Viewing changes to gdb/inflow.c

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2011-03-15 16:14:08 UTC
  • Revision ID: james.westby@ubuntu.com-20110315161408-o3sk4typcfgzuiqb
Tags: 7.2-1ubuntu10
* Update with changes from the Linaro 7.2-2011.03-0 release (Ulrich Weigand).
* Configure with --with-pkgversion, don't run post-patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
202
202
      struct inferior *inf = current_inferior ();
203
203
      struct terminal_info *tinfo = get_inflow_inferior_data (inf);
204
204
 
205
 
      /* We could just as well copy our_ttystate (if we felt like
206
 
         adding a new function serial_copy_tty_state()).  */
207
205
      xfree (tinfo->ttystate);
208
 
      tinfo->ttystate = serial_get_tty_state (stdin_serial);
 
206
      tinfo->ttystate = serial_copy_tty_state (stdin_serial,
 
207
                                               our_terminal_info.ttystate);
209
208
 
210
209
#ifdef PROCESS_GROUP_TYPE
211
210
      tinfo->process_group = pgrp;
227
226
{
228
227
  if (gdb_has_a_terminal ())
229
228
    {
230
 
      /* We could just as well copy our_ttystate (if we felt like adding
231
 
         a new function serial_copy_tty_state).  */
232
229
      xfree (our_terminal_info.ttystate);
233
230
      our_terminal_info.ttystate = serial_get_tty_state (stdin_serial);
234
231
    }
472
469
  if (info != NULL)
473
470
    {
474
471
      xfree (info->run_terminal);
 
472
      xfree (info->ttystate);
475
473
      xfree (info);
476
474
    }
477
475
}
509
507
  if (info != NULL)
510
508
    {
511
509
      xfree (info->run_terminal);
 
510
      xfree (info->ttystate);
512
511
      xfree (info);
513
512
      set_inferior_data (inf, inflow_inferior_data, NULL);
514
513
    }
521
520
 
522
521
  tinfo_to = get_inflow_inferior_data (to);
523
522
  tinfo_from = get_inflow_inferior_data (from);
 
523
 
 
524
  xfree (tinfo_to->run_terminal);
 
525
  xfree (tinfo_to->ttystate);
 
526
 
524
527
  *tinfo_to = *tinfo_from;
 
528
 
525
529
  if (tinfo_from->run_terminal)
526
530
    tinfo_to->run_terminal
527
531
      = xstrdup (tinfo_from->run_terminal);
 
532
 
 
533
  if (tinfo_from->ttystate)
 
534
    tinfo_to->ttystate
 
535
      = serial_copy_tty_state (stdin_serial, tinfo_from->ttystate);
528
536
}
529
537
 
530
538
void