]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Follow-up to sys_ipc restructuration
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 21 Oct 2012 21:13:39 +0000 (21:13 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 21 Oct 2012 21:13:39 +0000 (21:13 +0000)
Now that the PRE/POS(sys_ipc) code is not duplicated anymore,
fix two strange things in this code:

* PRE(sys_ipc) : add missing ; after the call PRE_REG_READ6
  (strange that this was compiling without it ???)

* POST(sys_ipc) : it seems there was a copy/paste of
  the  PRE(sys_ipc) code for VKI_SEMCTL.
  Cannot understand why we would need to call again
  deref_Addr and ML_(generic_PRE_sys_semctl) in the POST(sys_ipc).

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13078

coregrind/m_syswrap/syswrap-linux.c

index 5ab17db6323aa4b350c1029090cbc873d0dd8878..28a12b4377c47f0adaaea55c5592e0e714c85539 100644 (file)
@@ -3307,7 +3307,7 @@ PRE(sys_ipc)
    // XXX: this is simplistic -- some args are not used in all circumstances.
    PRE_REG_READ6(int, "ipc",
                  vki_uint, call, int, first, int, second, int, third,
-                 void *, ptr, long, fifth)
+                 void *, ptr, long, fifth);
 
    switch (ARG1 /* call */) {
    case VKI_SEMOP:
@@ -3387,13 +3387,8 @@ POST(sys_ipc)
    switch (ARG1 /* call */) {
    case VKI_SEMOP:
    case VKI_SEMGET:
-      break;
    case VKI_SEMCTL:
-   {
-      UWord arg = deref_Addr( tid, ARG5, "semctl(arg)" );
-      ML_(generic_PRE_sys_semctl)( tid, ARG2, ARG3, ARG4, arg );
       break;
-   }
    case VKI_SEMTIMEDOP:
    case VKI_MSGSND:
       break;