From: Jeremy Fitzhardinge Date: Thu, 5 Feb 2004 22:58:37 +0000 (+0000) Subject: Fix for bug 73326. It seems that gcc 3.2.2 is generating negatively-sized X-Git-Tag: svn/VALGRIND_2_1_1~68 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=863515c9a456eef461db13c9f7cda9748eec78da;p=thirdparty%2Fvalgrind.git Fix for bug 73326. It seems that gcc 3.2.2 is generating negatively-sized 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 --- diff --git a/coregrind/vg_symtab2.c b/coregrind/vg_symtab2.c index 3c15da5f95..72be6fa373 100644 --- a/coregrind/vg_symtab2.c +++ b/coregrind/vg_symtab2.c @@ -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;