On Mon, Mar 16, 2015 at 03:10:56PM +0100, Andreas Schwab wrote:
> "Dmitry V. Levin" <ldv-u2l5PoMzF/vg9huczpv...@public.gmane.org> writes:
> > On Thu, Mar 12, 2015 at 11:13:49AM +0100, Andreas Schwab wrote:
> >> "Dmitry V. Levin" 
> >> <ldv-u2l5PoMzF/vg9huczpvpmw-xmd5yjdbdmrexy1tmh2...@public.gmane.org> 
> >> writes:
> >> > On Wed, Mar 11, 2015 at 01:07:15PM +0100, Andreas Schwab wrote:
> >> >> On architectures where the semctl call is implemented by the ipc syscall
> >> >> the glibc wrapper passes a pointer to a local variable, so the value of
> >> >> the fourth argument is unknown.
> >> >
> >> > Wouldn't it be better to fix the parser, e.g.
> >> >
> >> > --- a/ipc.c
> >> > +++ b/ipc.c
> >> > @@ -281,7 +281,16 @@ int sys_semctl(struct tcb *tcp)
> >> >          if (entering(tcp)) {
> >> >                  tprintf("%lu, %lu, ", tcp->u_arg[0], tcp->u_arg[1]);
> >> >                  PRINTCTL(semctl_flags, tcp->u_arg[2], "SEM_???");
> >> > -                tprintf(", %#lx", tcp->u_arg[3]);
> >> > +                tprints(", ");
> >> > +                if (indirect_ipccall(tcp)) {
> >> > +                        if (current_wordsize == sizeof(int)) {
> >> > +                                printnum_int(tcp, tcp->u_arg[3], "%#x");
> >> > +                        } else {
> >> > +                                printnum_long(tcp, tcp->u_arg[3], 
> >> > "%#lx");
> >> > +                        }
> >> 
> >> That prints [...] instead of just the number, though.
> >
> > Yes, of course it does.
> 
> This patch is needed on top.

Sure. I've installed the fix.


-- 
ldv

Attachment: pgp2xQGBa0d4o.pgp
Description: PGP signature

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Strace-devel mailing list
Strace-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to