]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Don't assert on icc9 generated Dwarf3.
authorJulian Seward <jseward@acm.org>
Wed, 22 Oct 2008 15:49:59 +0000 (15:49 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 22 Oct 2008 15:49:59 +0000 (15:49 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8696

coregrind/m_debuginfo/readdwarf3.c

index 84248b23f1d190b364ffaf790aba818d57b37fb3..a6d432eee8e224fd41d7104d2147602d26a9e7ef 100644 (file)
@@ -3760,10 +3760,14 @@ void new_dwarf3_reader_wrk (
    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);