qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix shmat strace
@ 2008-10-15 21:50 Lauro Ramos Venancio
  0 siblings, 0 replies; 2+ messages in thread
From: Lauro Ramos Venancio @ 2008-10-15 21:50 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 159 bytes --]

The shmat syscall returns an address, so we must use the
print_syscall_ret_addr function.

-- 
Lauro Ramos Venancio
INdT - Instituto Nokia de Tecnologia

[-- Attachment #1.2: shmat_strace.patch --]
[-- Type: text/x-patch, Size: 509 bytes --]

Index: linux-user/strace.list
===================================================================
--- linux-user/strace.list	(revision 5391)
+++ linux-user/strace.list	(working copy)
@@ -1250,7 +1250,7 @@
 { TARGET_NR_sgetmask, "sgetmask" , NULL, NULL, NULL },
 #endif
 #ifdef TARGET_NR_shmat
-{ TARGET_NR_shmat, "shmat" , NULL, NULL, NULL },
+{ TARGET_NR_shmat, "shmat" , NULL, NULL, print_syscall_ret_addr },
 #endif
 #ifdef TARGET_NR_shmctl
 { TARGET_NR_shmctl, "shmctl" , NULL, NULL, NULL },

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Qemu-devel] [PATCH] fix shmat strace
@ 2008-10-15 22:57 Lauro Ramos Venancio
  0 siblings, 0 replies; 2+ messages in thread
From: Lauro Ramos Venancio @ 2008-10-15 22:57 UTC (permalink / raw)
  To: qemu-devel


[-- Attachment #1.1: Type: text/plain, Size: 159 bytes --]

The shmat syscall returns an address, so we must use the
print_syscall_ret_addr function.

-- 
Lauro Ramos Venancio
INdT - Instituto Nokia de Tecnologia

[-- Attachment #1.2: shmat_strace.patch --]
[-- Type: text/x-patch, Size: 509 bytes --]

Index: linux-user/strace.list
===================================================================
--- linux-user/strace.list	(revision 5391)
+++ linux-user/strace.list	(working copy)
@@ -1250,7 +1250,7 @@
 { TARGET_NR_sgetmask, "sgetmask" , NULL, NULL, NULL },
 #endif
 #ifdef TARGET_NR_shmat
-{ TARGET_NR_shmat, "shmat" , NULL, NULL, NULL },
+{ TARGET_NR_shmat, "shmat" , NULL, NULL, print_syscall_ret_addr },
 #endif
 #ifdef TARGET_NR_shmctl
 { TARGET_NR_shmctl, "shmctl" , NULL, NULL, NULL },

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-10-15 22:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-15 22:57 [Qemu-devel] [PATCH] fix shmat strace Lauro Ramos Venancio
  -- strict thread matches above, loose matches on Subject: below --
2008-10-15 21:50 Lauro Ramos Venancio

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).