diff options
author | John Gilmore <gnu@cygnus> | 1991-09-25 01:09:15 +0000 |
---|---|---|
committer | John Gilmore <gnu@cygnus> | 1991-09-25 01:09:15 +0000 |
commit | 680c9dfa720a0585b3b740cd467419f068afc9b4 (patch) | |
tree | b447d5e5f841e97ae950903eb8d61ddaf67c3816 /gdb/infrun.c | |
parent | 996dda31f0ed9cea10627f3c79c99d64aebbc1bb (diff) | |
download | gdb-680c9dfa720a0585b3b740cd467419f068afc9b4.zip gdb-680c9dfa720a0585b3b740cd467419f068afc9b4.tar.gz gdb-680c9dfa720a0585b3b740cd467419f068afc9b4.tar.bz2 |
IN_SIGTRAMP bugfix.
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index a0776c8..8bf50ec 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -166,7 +166,7 @@ extern struct target_ops child_ops; /* In inftarg.c */ no name, assume we are not in sigtramp). */ #if !defined (IN_SIGTRAMP) #define IN_SIGTRAMP(pc, name) \ - name && !strcmp ("_sigtramp", name) + (name && !strcmp ("_sigtramp", name)) #endif #ifdef TDESC @@ -528,7 +528,7 @@ child_create_inferior (exec_file, allargs, env) #ifdef TIOCGPGRP /* Run inferior in a separate process group. */ debug_setpgrp = setpgrp (getpid (), getpid ()); - if (0 != debug_setpgrp) + if (debug_setpgrp == -1) perror("setpgrp failed in child"); #endif /* TIOCGPGRP */ |