Stuart Hughes, stuarth@freescale.com 8th April 05 Extracted from: From: Davin Milun (milun@cs.buffalo.edu) Subject: Re: xxgdb for Solaris View: Complete Thread (4 articles) Original Format Newsgroups: comp.unix.solaris Date: 1995/05/05 Geraldo Veiga wrote: »Now, how do I avoid those » »[tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] » »messages at every step the program takes under mxgdb (and xxgdb)?. I am »running GDB4.13 under Solaris 2.4. You need to patch inflow.c. diff --exclude CVS -uNr gdb-6.0/gdb/inflow.c gdb-6.0.modified/gdb/inflow.c --- gdb-6.0/gdb/inflow.c 2003-02-07 04:21:34.000000000 +0000 +++ gdb-6.0.modified/gdb/inflow.c 2005-04-08 14:28:47.000000000 +0100 @@ -272,13 +272,13 @@ { #ifdef HAVE_TERMIOS result = tcsetpgrp (0, inferior_process_group); - if (!attach_flag) + if (!attach_flag && errno != ENOTTY) OOPSY ("tcsetpgrp"); #endif #ifdef HAVE_SGTTY result = ioctl (0, TIOCSPGRP, &inferior_process_group); - if (!attach_flag) + if (!attach_flag errno != ENOTTY) OOPSY ("TIOCSPGRP"); #endif }