On Tue, May 27, 2014 at 06:32:29AM +0530, Zubin Mithra wrote: > >> --- a/syscall.c > >> +++ b/syscall.c > >> @@ -2669,7 +2669,12 @@ trace_syscall_exiting(struct tcb *tcp) > >> tprintf("= %lu", tcp->u_rval); > >> break; > >> case RVAL_DECIMAL: > >> - tprintf("= %ld", tcp->u_rval); > >> + if ( show_fd_path == 2 && returns_fd(tcp) ) { > > > > What if show_fd_path > 2? > > According to the current implementation, it would behave as if a "-y" > had been performed. The fd returned would not be decoded. > Calls to printfd would behave as they normally would(if a "-y" had been used).
Wouldn't it be more logical if more -y options didn't result to less amount of fd decoding? Let's change the test to "show_fd_path > 1". -- ldv
pgpI9hqbrMP9t.pgp
Description: PGP signature
------------------------------------------------------------------------------ The best possible search technologies are now affordable for all companies. Download your FREE open source Enterprise Search Engine today! Our experts will assist you in its installation for $59/mo, no commitment. Test it for FREE on our Cloud platform anytime! http://pubads.g.doubleclick.net/gampad/clk?id=145328191&iu=/4140/ostg.clktrk
_______________________________________________ Strace-devel mailing list Strace-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/strace-devel