From: Fred Fish Date: Thu, 24 Oct 1991 09:26:05 +0000 (+0000) Subject: System V versions must call setpgrp() with no arguments, to comply with X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=150f5436253236069fabd06db673ba39059f7a1f;p=binutils-gdb.git System V versions must call setpgrp() with no arguments, to comply with prototyping typically in . Otherwise the compile fails, at least with gcc. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 56141df123f..33359681b70 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ Thu Oct 24 01:32:51 1991 Fred Fish (fnf at cygnus.com) + * infrun.c (child_create_inferior): System V versions must call + setpgrp() with no arguments, to comply with prototyping typically + in . + * munch: Add support for SVR4 style nm output. * dbxread.c, mipsread.c symmisc.c, symtab.c: Remove the object diff --git a/gdb/infrun.c b/gdb/infrun.c index 1aea0a2a2c1..ce7da916fd4 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -534,7 +534,11 @@ child_create_inferior (exec_file, allargs, env) #ifdef TIOCGPGRP /* Run inferior in a separate process group. */ +#ifdef USG + debug_setpgrp = setpgrp (); +#else debug_setpgrp = setpgrp (getpid (), getpid ()); +#endif if (debug_setpgrp == -1) perror("setpgrp failed in child"); #endif /* TIOCGPGRP */