summaryrefslogtreecommitdiff
path: root/ipc.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2005-12-02 03:44:12 +0000
committerRoland McGrath <roland@redhat.com>2005-12-02 03:44:12 +0000
commitf467c0078a197fa9ab23706bef5479d43bd6cc7e (patch)
treeaf48c90050d71eec0387872b98517e2f995d71b2 /ipc.c
parent68565786b59c8f42ec51ac58f3aceb1c98a26445 (diff)
downloadstrace-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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/ipc.c b/ipc.c
index ede16b9..84d66dc 100644
--- 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(", ");