Don't generate SIGTTOU when resolving a pending breakpoint. --- gdb-6.6/gdb/infrun.c.orig 2007-01-28 01:35:28 +0000 +++ gdb-6.6/gdb/infrun.c 2007-01-28 01:35:33 +0000 @@ -2254,7 +2254,6 @@ process_event_stop_test: #else solib_add (NULL, 0, ¤t_target, auto_solib_add); #endif - target_terminal_inferior (); /* Try to reenable shared library breakpoints, additional code segments in shared libraries might be mapped in now. */ @@ -2265,6 +2264,8 @@ process_event_stop_test: inferior. */ re_enable_breakpoints_at_startup (); + target_terminal_inferior (); + /* If requested, stop when the dynamic linker notifies gdb of events. This allows the user to get control and place breakpoints in initializer routines for