#include "terminal.h"
#include "target.h"
#include "gdbthread.h"
-#include "observer.h"
+#include "observable.h"
#include <signal.h>
#include <fcntl.h>
#include "gdb_select.h"
xfree (tinfo->ttystate);
tinfo->ttystate = serial_get_tty_state (stdin_serial);
+#ifdef HAVE_TERMIOS_H
tinfo->process_group = tcgetpgrp (0);
+#endif
#ifdef F_GETFL
tinfo->tflags = fcntl (0, F_GETFL, 0);
either Ctrl-C or with kill(3) with negative PID) sends a
SIGINT to each process in the process group, and we may not
be debugging all processes in the process group. */
+#ifndef _WIN32
kill (resumed->inf->pid, SIGINT);
+#endif
}
}
{
gdb_assert (inf->pid != 0);
+#ifndef _WIN32
kill (inf->pid, SIGINT);
+#endif
return;
}
}
/* OK, figure out whether we have job control. */
have_job_control ();
- observer_attach_inferior_exit (inflow_inferior_exit);
+ gdb::observers::inferior_exit.attach (inflow_inferior_exit);
inflow_inferior_data
= register_inferior_data_with_cleanup (NULL, inflow_inferior_data_cleanup);