diff options
author | Roland McGrath <roland@redhat.com> | 2005-12-02 03:44:12 +0000 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2005-12-02 03:44:12 +0000 |
commit | f467c0078a197fa9ab23706bef5479d43bd6cc7e (patch) | |
tree | af48c90050d71eec0387872b98517e2f995d71b2 /ipc.c | |
parent | 68565786b59c8f42ec51ac58f3aceb1c98a26445 (diff) | |
download | strace-f467c0078a197fa9ab23706bef5479d43bd6cc7e.tar.gz strace-f467c0078a197fa9ab23706bef5479d43bd6cc7e.tar.bz2 strace-f467c0078a197fa9ab23706bef5479d43bd6cc7e.tar.xz |
2005-07-31 Ulrich Drepper <drepper@redhat.com>
* ipc.c (sys_msgrcv): Add entering handling and print first parameter
there.
Fixes RH#164757.
Diffstat (limited to 'ipc.c')
-rw-r--r-- | ipc.c | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -231,24 +231,25 @@ struct tcb *tcp; } tmp; #endif - - if (exiting(tcp)) { + if (entering(tcp)) { + tprintf("%lu, ", tcp->u_arg[0]); + } else { tprintf("%lu", tcp->u_arg[0]); #ifdef LINUX umove(tcp, tcp->u_arg[3], &tmp); umove(tcp, (long) tmp.msgp, &mtype); tprintf(", {%lu, ", mtype); printstr(tcp, (long) (tmp.msgp) + sizeof(long), - tcp->u_arg[1]); + tcp->u_arg[1]); tprintf("}, %lu", tcp->u_arg[1]); tprintf(", %ld", tmp.msgtyp); tprintf(", "); printflags(msg_flags, tcp->u_arg[2], "MSG_???"); #else /* !LINUX */ umove(tcp, tcp->u_arg[1], &mtype); - tprintf(", {%lu, ", mtype); + tprintf("{%lu, ", mtype); printstr(tcp, tcp->u_arg[1] + sizeof(long), - tcp->u_arg[2]); + tcp->u_arg[2]); tprintf("}, %lu", tcp->u_arg[2]); tprintf(", %ld", tcp->u_arg[3]); tprintf(", "); |