]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add a clarifying comment.
authorFlorian Krohm <florian@eich-krohm.de>
Tue, 16 Dec 2014 12:04:03 +0000 (12:04 +0000)
committerFlorian Krohm <florian@eich-krohm.de>
Tue, 16 Dec 2014 12:04:03 +0000 (12:04 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14813

coregrind/m_redir.c

index a4738e2427453dfaac045cd1c1b81890accbf7bb..5075b061d21c42694fd49bd97eff552d4c99c642 100644 (file)
@@ -1181,6 +1181,10 @@ static void add_hardwired_spec (const  HChar* sopatt, const HChar* fnpatt,
    vg_assert(topSpecs->next == NULL);
    vg_assert(topSpecs->seginfo == NULL);
    /* FIXED PARTS */
+   /* Note, that these CONST_CAST will not cause a problem, in the sense
+      that VG_(redir_notify_delete_DebugInfo) will delete them. The reason
+      is that the TopSpec here has seginfo == NULL and such a TopSpec will
+      never be freed. See the asserts at the beginning of said function. */
    spec->from_sopatt = CONST_CAST(HChar *,sopatt);
    spec->from_fnpatt = CONST_CAST(HChar *,fnpatt);
    spec->to_addr     = to_addr;