Re: strace changes behavior of the traced process

2014-07-28 Thread Andreas Schwab
Yuri writes: > When I run 'gdb printf' with and without strace, the output of gdb is > different in that with strace "Inferior exited" message disappears. > It looks like strace maybe consumes the exit signal of the debugged > process before gdb does? > > $ gdb printf > <...skipped...> > (gdb)

strace changes behavior of the traced process

2014-07-27 Thread Yuri
When I run 'gdb printf' with and without strace, the output of gdb is different in that with strace "Inferior exited" message disappears. It looks like strace maybe consumes the exit signal of the debugged process before gdb does? $ gdb printf <...skipped...> (gdb) r "Hello\n" Starting program: