X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Finflow.c;h=eb5c89bda577ebd35f58d56df06ead5a35e2ef5a;hb=655c5466129d563265e1d218865dbf2e2f067420;hp=f2c306c856fbf988b9dc02fc576dbfcfe9932c15;hpb=0faf007628341c5afd2d3721c84e46d27ff6d3e0;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/inflow.c b/gdb/inflow.c index f2c306c856..eb5c89bda5 100644 --- a/gdb/inflow.c +++ b/gdb/inflow.c @@ -42,6 +42,10 @@ #include #endif +#ifndef O_NOCTTY +#define O_NOCTTY 0 +#endif + #if defined (SIGIO) && defined (FASYNC) && defined (FD_SET) && defined (F_SETOWN) static void handle_sigio (int); #endif @@ -537,12 +541,7 @@ new_tty (void) #endif /* Now open the specified new terminal. */ - -#ifdef USE_O_NOCTTY tty = open (inferior_thisrun_terminal, O_RDWR | O_NOCTTY); -#else - tty = open (inferior_thisrun_terminal, O_RDWR); -#endif if (tty == -1) { print_sys_errmsg (inferior_thisrun_terminal, errno); @@ -597,6 +596,7 @@ kill_command (char *arg, int from_tty) else print_stack_frame (get_selected_frame (), 1, SRC_AND_LOC); } + bfd_cache_close_all (); } /* Call set_sigint_trap when you need to pass a signal on to an attached