]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
When only reading inline info, no need to parse debug_types sections
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 15 Jun 2014 19:16:46 +0000 (19:16 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Sun, 15 Jun 2014 19:16:46 +0000 (19:16 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14040

coregrind/m_debuginfo/readdwarf3.c

index 8980823e7ff6e1f2c23278d44e361d406b3c7ce1..ad8ee4137421fcc184a867cac9752418b8a7726b 100644 (file)
@@ -4179,6 +4179,8 @@ void new_dwarf3_reader_wrk (
       } else {
          if (!ML_(sli_is_valid)(escn_debug_types))
             continue;
+         if (!VG_(clo_read_var_info))
+            continue; // Types not needed when only reading inline info.
          init_Cursor( &info, escn_debug_types, 0, barf,
                       "Overrun whilst reading .debug_types section" );
          section_size = escn_debug_types.szB;