]> granicus.if.org Git - strace/commitdiff
2005-07-31 Ulrich Drepper <drepper@redhat.com>
authorRoland McGrath <roland@redhat.com>
Fri, 2 Dec 2005 03:44:12 +0000 (03:44 +0000)
committerRoland McGrath <roland@redhat.com>
Fri, 2 Dec 2005 03:44:12 +0000 (03:44 +0000)
* ipc.c (sys_msgrcv): Add entering handling and print first parameter
there.
Fixes RH#164757.

ipc.c

diff --git a/ipc.c b/ipc.c
index ede16b9bb71e406d9ec7f579f928320f26935cfd..84d66dce5590d51ead95061aa24e6a33d7e32007 100644 (file)
--- a/ipc.c
+++ b/ipc.c
@@ -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(", ");