]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Small cleanup: use VG_TRACK (when possible) to call tool tracking functions
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 18 Jul 2012 20:33:40 +0000 (20:33 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 18 Jul 2012 20:33:40 +0000 (20:33 +0000)
(spotted by Julian)
Note: there is a second occurence of call to track_post_mem_write in the
same file; but this second occurence is better done with an "if".

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

coregrind/m_gdbserver/target.c

index a85aa94eff6ccc886d97e1206a6ccb84487a7893..165a7173c7fb77a653e2a44c765479932301d9fb 100644 (file)
@@ -393,10 +393,8 @@ void usr_store_inferior_registers (int regno)
                     delta);
                VG_TRACK( new_mem_stack_w_ECU, new_SP, -delta, 0 );
                VG_TRACK( new_mem_stack,       new_SP, -delta );
-               if (VG_(tdict).track_post_mem_write) {
-                  VG_(tdict).track_post_mem_write( Vg_CoreClientReq, tid, 
-                                                   new_SP, -delta);
-               }
+               VG_TRACK( post_mem_write, Vg_CoreClientReq, tid,
+                         new_SP, -delta);
             }
          }
       }