projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30a8cac
)
Fix strace or FUTEX_PRIVATE_FLAG
author
Paul Brook
<paul@codesourcery.com>
Fri, 19 Feb 2010 16:04:51 +0000
(16:04 +0000)
committer
Paul Brook
<paul@codesourcery.com>
Fri, 19 Feb 2010 16:04:51 +0000
(16:04 +0000)
FUTEX_PRIVATE_FLAG is a bit orred with an existing futex op,
not a distinct value.
Signed-off-by: Paul Brook <paul@codesourcery.com>
linux-user/strace.c
patch
|
blob
|
history
diff --git
a/linux-user/strace.c
b/linux-user/strace.c
index 6090dcc65da009771bef216e4e68f04133e3b66f..d77053b30354a8533aba5e1a716e18a2713b5441 100644
(file)
--- a/
linux-user/strace.c
+++ b/
linux-user/strace.c
@@
-1252,8
+1252,10
@@
if( cmd == val ) { \
int cmd = (int)tswap32(tflag);
#ifdef FUTEX_PRIVATE_FLAG
- if (cmd
== FUTEX_PRIVATE_FLAG)
+ if (cmd
& FUTEX_PRIVATE_FLAG) {
gemu_log("FUTEX_PRIVATE_FLAG|");
+ cmd &= ~FUTEX_PRIVATE_FLAG;
+ }
#endif
print_op(FUTEX_WAIT)
print_op(FUTEX_WAKE)