merge.
authorTom Sutcliffe <thomas.sutcliffe@accenture.com>
Thu, 21 Oct 2010 22:33:54 +0100
changeset 74 4429a6c63207
parent 73 dc41da2f70a4 (current diff)
parent 72 ce94bcf3f672 (diff)
child 75 6bffbe8be665
merge.
documentation/change_history.pod
--- a/commands/chkdeps/chkdeps.cpp	Thu Oct 21 22:32:59 2010 +0100
+++ b/commands/chkdeps/chkdeps.cpp	Thu Oct 21 22:33:54 2010 +0100
@@ -202,6 +202,7 @@
 		}
 	}
 
+// Adapted from E32Image::LoadFileBytePairUnpakL()
 void CDllChecker::LoadFileBytePairL(const E32ImageHeaderComp* aHeader, RBuf8& aCode, RBuf8& aRestOfFile)
 	{
 	TInt pos = aHeader->TotalSize();
@@ -245,11 +246,10 @@
 		{
 		LoadFileInflateL(aHeader, aCode, aRestOfFile);
 		}
-	/*TOMSCI TODO doesn't seem to work...
 	else if (aCompression == KUidCompressionBytePair)
 		{
 		LoadFileBytePairL(aHeader, aCode, aRestOfFile);
-		}*/
+		}
 	else
 		{
 		LeaveIfErr(KErrNotSupported, _L("Compression type 0x%x is not supported"), aCompression);
--- a/commands/chkdeps/sf_pgcompr.cpp	Thu Oct 21 22:32:59 2010 +0100
+++ b/commands/chkdeps/sf_pgcompr.cpp	Thu Oct 21 22:33:54 2010 +0100
@@ -108,12 +108,10 @@
 	User::LeaveIfError(size);
 	if (size != aLength)
 		LEAVE_FAILURE(KErrCorrupt);
-	if (iNextPage + iIndexTable[aPageNum] != nextPage)
-		StaticLeaveIfErr(KErrCorrupt, _L("nextPage is %x, expected %x for pagenum %d"), nextPage, iNextPage + iIndexTable[aPageNum], aPageNum);
+//	if (iNextPage + iIndexTable[aPageNum] != nextPage)
+//		StaticLeaveIfErr(KErrCorrupt, _L("nextPage is %x, expected %x for pagenum %d"), nextPage, iNextPage + iIndexTable[aPageNum], aPageNum);
 //		LEAVE_FAILURE(KErrCorrupt);
 
-//TOMSCI	IoUtils::CCommandBase::Static().Printf(_L("nextPage is 0x%08x, iNextPage+%d\r\n"), nextPage, nextPage - iNextPage);
-
 	// If a memmove() was provided, use that to copy the data to its final target
 	if (aMemMoveFn)
 		aMemMoveFn(aTarget, iPageBuf, size);
--- a/documentation/change_history.pod	Thu Oct 21 22:32:59 2010 +0100
+++ b/documentation/change_history.pod	Thu Oct 21 22:33:54 2010 +0100
@@ -40,6 +40,11 @@
 
 =item *
 
+Updated chkdeps command so that it works with byte-pair compressed binaries (experimental).
+
+
+=item *
+
 Added L<showdebug|commands::showdebug> command to redirect RDebug::Print()s to the console.
 
 =back