]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Fix for bug 73326. It seems that gcc 3.2.2 is generating negatively-sized
authorJeremy Fitzhardinge <jeremy@valgrind.org>
Thu, 5 Feb 2004 22:58:37 +0000 (22:58 +0000)
committerJeremy Fitzhardinge <jeremy@valgrind.org>
Thu, 5 Feb 2004 22:58:37 +0000 (22:58 +0000)
scopes and out of order line number information in the stabs debug info.
I wonder if this is the stabs writer rotting now that dwarf is the
default...

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@2240

coregrind/vg_symtab2.c

index 3c15da5f951081f9e1ef46b8f4589f341c9ecd94..72be6fa3731ccd3fea07d6eaf0a2aaeb64a66a64 100644 (file)
@@ -301,8 +301,8 @@ void VG_(addScopeInfo) ( SegInfo* si,
    Int size = next - this;
    ScopeRange range;
 
-   /* Ignore zero-sized scopes */
-   if (this == next) {
+   /* Ignore zero-sized or negative scopes */
+   if (size <= 0) {
       if (debug)
         VG_(printf)("ignoring zero-sized range, scope %p at %p\n", scope, this);
       return;