From 09c0441dbddb4cd7d60f362798c4ab0e010f3a96 Mon Sep 17 00:00:00 2001
From: clc5q <clc5q@git.zephyr-software.com>
Date: Wed, 22 Jul 2015 16:14:25 +0000
Subject: [PATCH] Add more diagnostic output on fatal error.

Former-commit-id: bc0185990415a0aacd613105fd47ba47e7a2346e
---
 src/base/SMPInstr.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/base/SMPInstr.cpp b/src/base/SMPInstr.cpp
index b9dca371..fd261421 100644
--- a/src/base/SMPInstr.cpp
+++ b/src/base/SMPInstr.cpp
@@ -2066,6 +2066,9 @@ void SMPInstr::Dump(void) {
 #if SMP_VERBOSE_DUMP
 	this->PrintOperands();
 #endif
+	SMP_msg("\n");
+	SMP_msg("DEFMemOp: "); PrintOperand(this->DEFMemOp); SMP_msg("\n");
+	SMP_msg("USEMemOp: "); PrintOperand(this->USEMemOp); SMP_msg("\n");
 	SMP_msg("\n");
 	return;
 } // end of SMPInstr::Dump()
@@ -4688,9 +4691,10 @@ bool SMPInstr::MDNormalizeStackOps(bool UseFP, STARS_sval_t FPDelta, bool Recomp
 						}
 						else {
 							SMP_msg("\nFATAL ERROR in MDNormalizeStackOps: Stack operand is not the USEMemOp. Inst dump follows.\n");
+							SMP_msg("Recomputing: %d  DeltaIncrement: %d\n", Recomputing, DeltaIncrement);
 							SMP_msg("Stack Op: ");
 							PrintOperand(OldOp);
-							SMP_msg("   USEMemOp: ");
+							SMP_msg("\nUSEMemOp: ");
 							PrintOperand(this->USEMemOp);
 							SMP_msg(" \n");
 							this->Dump();
-- 
GitLab