Blame SOURCES/testsuite-10.1.0-386.patch

b00c06
--- dyninst-10.1.0/testsuite-10.1.0/src/instruction/test_instruction_farcall.C
b00c06
+++ dyninst-10.1.0/testsuite-10.1.0/src/instruction/test_instruction_farcall.C
b00c06
@@ -96,21 +96,21 @@ test_results_t test_instruction_farcall_Mutator::executeTest()
b00c06
   if(decodedInsns.size() != expectedInsns) // six valid, one invalid
b00c06
   {
b00c06
     logerror("FAILED: Expected %d instructions, decoded %d\n", expectedInsns, decodedInsns.size());
b00c06
-    for(std::vector<Instruction::Ptr>::iterator curInsn = decodedInsns.begin();
b00c06
+    for(std::vector<Instruction>::iterator curInsn = decodedInsns.begin();
b00c06
 	curInsn != decodedInsns.end();
b00c06
 	++curInsn)
b00c06
     {
b00c06
-      logerror("\t%s\t", (*curInsn)->format().c_str());
b00c06
-      for(unsigned j = 0; j < (*curInsn)->size(); ++j)
b00c06
+      logerror("\t%s\t", (*curInsn).format().c_str());
b00c06
+      for(unsigned j = 0; j < (*curInsn).size(); ++j)
b00c06
       {
b00c06
-	logerror("%x ", (*curInsn)->rawByte(j));
b00c06
+	logerror("%x ", (*curInsn).rawByte(j));
b00c06
       }
b00c06
       logerror("\n");
b00c06
     }
b00c06
     
b00c06
     return FAILED;
b00c06
   }
b00c06
-  if(decodedInsns.back() && decodedInsns.back()->isValid())
b00c06
+  if(decodedInsns.size() > 0 && decodedInsns.back().isValid())
b00c06
   {
b00c06
     logerror("FAILED: Expected instructions to end with an invalid instruction, but they didn't");
b00c06
     return FAILED;