Update of /cvsroot/lxr/lxr/lib/LXR
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17645/lib/LXR
Modified Files:
Index.pm
Log Message:
Index.pm: failsafe "die" for bad cache initialisation
Added "die" statements in case symbol cache not properly initialized in setdymdeclaration and setsymreference. Should never fire since the symbols are supposed to have already been seen. This is only for debugging. Lines could be withdrawn once it is proven caching code is always correct.
Index: Index.pm
===================================================================
RCS file: /cvsroot/lxr/lxr/lib/LXR/Index.pm,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- Index.pm 14 Nov 2012 11:27:30 -0000 1.22
+++ Index.pm 1 Dec 2012 15:03:19 -0000 1.23
@@ -921,8 +921,8 @@
$cntcache{$relsym} += 1;
}
}
-die "Symbol cache not initialised for $symname\n" if (!defined($symcache{$symname}));
-die "Symbol cache not initialised for $relsym\n"
+die "Symbol cache not initialised for sym $symname\n" if (!defined($symcache{$symname}));
+die "Symbol cache not initialised for rel $relsym\n"
if (defined($relsym) && !defined($symcache{$relsym}));
}
|