|
From: <sv...@va...> - 2014-12-16 12:04:11
|
Author: florian
Date: Tue Dec 16 12:04:03 2014
New Revision: 14813
Log:
Add a clarifying comment.
Modified:
trunk/coregrind/m_redir.c
Modified: trunk/coregrind/m_redir.c
==============================================================================
--- trunk/coregrind/m_redir.c (original)
+++ trunk/coregrind/m_redir.c Tue Dec 16 12:04:03 2014
@@ -1181,6 +1181,10 @@
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;
|