X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Finflow.c;h=caff646207098c9938b43ccb671a39343c5ae910;hb=dbbc8b7e629fa666affd9a3f475d0bf6e5264677;hp=d971543a2819e091fe6e69de835e45c359e0f0b1;hpb=f6cfb42730ed37bfb32cb27ef627df930f437f08;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/inflow.c b/gdb/inflow.c index d971543a28..caff646207 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -24,7 +24,7 @@ #include "terminal.h" #include "target.h" #include "gdbthread.h" -#include "observer.h" +#include "observable.h" #include #include #include "gdb_select.h" @@ -138,7 +138,9 @@ private: to SIG_IGN. */ static sighandler_t sigint_ours; +#ifdef SIGQUIT static sighandler_t sigquit_ours; +#endif /* The name of the tty (from the `tty' command) that we're giving to the inferior when starting it up. This is only (and should only @@ -718,7 +720,7 @@ child_terminal_info (struct target_ops *self, const char *args, int from_tty) return; } - if (ptid_equal (inferior_ptid, null_ptid)) + if (inferior_ptid == null_ptid) return; inf = current_inferior (); @@ -825,11 +827,11 @@ check_syscall (const char *msg, int result) void new_tty (void) { - int tty; - if (inferior_thisrun_terminal == 0) return; #if !defined(__GO32__) && !defined(_WIN32) + int tty; + #ifdef TIOCNOTTY /* Disconnect the child process from our controlling terminal. On some systems (SVR4 for example), this may cause a SIGTTOU, so temporarily @@ -908,7 +910,7 @@ static void pass_signal (int signo) { #ifndef _WIN32 - kill (ptid_get_pid (inferior_ptid), SIGINT); + kill (inferior_ptid.pid (), SIGINT); #endif } @@ -989,7 +991,7 @@ _initialize_inflow (void) /* 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);