Blame SOURCES/testsuite-10.1.0-386.patch

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