]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Comment only changes
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 13 Jan 2013 15:18:51 +0000 (15:18 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 13 Jan 2013 15:18:51 +0000 (15:18 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13227

coregrind/m_execontext.c

index 824a4b47544a4ff652f7301960f8b77e89d7996f..a2f4b3e6536f4fca09d304cad445386aea8a105d 100644 (file)
 /*--- Low-level ExeContext storage.                        ---*/
 /*------------------------------------------------------------*/
 
-/* The first 4 IP values are used in comparisons to remove duplicate
-   errors, and for comparing against suppression specifications.  The
-   rest are purely informational (but often important).
+/* Depending on VgRes, the first 2, 4 or all IP values are used in
+   comparisons to remove duplicate errors, and for comparing against
+   suppression specifications.  If not used in comparison, the rest
+   are purely informational (but often important).
 
    The contexts are stored in a traditional chained hash table, so as
    to allow quick determination of whether a new context already
@@ -147,7 +148,8 @@ static void init_ExeContext_storage ( void )
       Addr ips[1];
       ips[0] = 0;
       null_ExeContext = record_ExeContext_wrk2(ips, 1);
-      vg_assert(null_ExeContext->ecu == 4); // null execontext must be the first one.
+      // null execontext must be the first one created and get ecu 4.
+      vg_assert(null_ExeContext->ecu == 4);
    }
 
    init_done = True;