|
From: <sv...@va...> - 2008-10-22 15:50:09
|
Author: sewardj
Date: 2008-10-22 16:49:59 +0100 (Wed, 22 Oct 2008)
New Revision: 8696
Log:
Don't assert on icc9 generated Dwarf3.
Modified:
trunk/coregrind/m_debuginfo/readdwarf3.c
Modified: trunk/coregrind/m_debuginfo/readdwarf3.c
===================================================================
--- trunk/coregrind/m_debuginfo/readdwarf3.c 2008-10-22 09:21:09 UTC (rev 8695)
+++ trunk/coregrind/m_debuginfo/readdwarf3.c 2008-10-22 15:49:59 UTC (rev 8696)
@@ -3760,10 +3760,14 @@
ML_(dinfo_free)( tyents_to_keep_cache );
tyents_to_keep_cache = NULL;
- /* and the file name table (just the array, not the entries
- themselves). */
- vg_assert(varparser.filenameTable);
- VG_(deleteXA)( varparser.filenameTable );
+ /* and the file name table (just the array, not the entries
+ themselves). (Apparently, 2008-Oct-23, varparser.filenameTable
+ can be NULL here, for icc9 generated Dwarf3. Not sure what that
+ signifies (a deeper problem with the reader?)) */
+ if (varparser.filenameTable) {
+ VG_(deleteXA)( varparser.filenameTable );
+ varparser.filenameTable = NULL;
+ }
/* record the GExprs in di so they can be freed later */
vg_assert(!di->admin_gexprs);
|