[PATCH] Support entering debugger on Line-F and Line-A instructions

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


---
 src/debug/debugui.c | 6 +++++-
 src/debug/log.c     | 2 ++
 src/debug/log.h     | 2 ++
 3 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/src/debug/debugui.c b/src/debug/debugui.c
index e963a2e7..ef9dc9fd 100644
--- a/src/debug/debugui.c
+++ b/src/debug/debugui.c
@@ -1405,9 +1405,13 @@ void DebugUI_Exceptions(int nr, long pc)
 		{ EXCEPT_CHK,       "CHK" },			/* 6 */
 		{ EXCEPT_TRAPV,     "TRAPV" },			/* 7 */
 		{ EXCEPT_PRIVILEGE, "Privilege violation" },	/* 8 */
-		{ EXCEPT_TRACE,     "Trace" }			/* 9 */
+		{ EXCEPT_TRACE,     "Trace" },			/* 9 */
+		{ EXCEPT_LINEA,     "Line-A" },			/* 10 */
+		{ EXCEPT_LINEF,     "Line-F" }			/* 11 */
 	};
 	nr -= 2;
+	if (nr == 60 - 2)  /* 68060 unimplemented effective address */
+		nr = 11 - 2;
 	if (nr < 0  || nr >= ARRAY_SIZE(ex))
 		return;
 	if (!(ExceptionDebugMask & ex[nr].flag))
diff --git a/src/debug/log.c b/src/debug/log.c
index 8f1c93f5..e2af6c31 100644
--- a/src/debug/log.c
+++ b/src/debug/log.c
@@ -52,6 +52,8 @@ static flagname_t ExceptionFlags[] = {
 	{ EXCEPT_PRIVILEGE, "privilege" },
 	{ EXCEPT_TRACE,     "trace" },
 	{ EXCEPT_NOHANDLER, "nohandler" },
+	{ EXCEPT_LINEA,     "linea" },
+	{ EXCEPT_LINEF,     "linef" },
 
 	{ EXCEPT_DSP,       "dsp" },
 
diff --git a/src/debug/log.h b/src/debug/log.h
index 1b7f9247..3a343f67 100644
--- a/src/debug/log.h
+++ b/src/debug/log.h
@@ -26,6 +26,8 @@
 #define	EXCEPT_PRIVILEGE (1<<6)
 #define	EXCEPT_TRACE     (1<<7)
 #define	EXCEPT_NOHANDLER (1<<8)
+#define	EXCEPT_LINEA     (1<<11)
+#define	EXCEPT_LINEF     (1<<12)
 
 /* DSP exception flags */
 #define EXCEPT_DSP	 (1<<9)
-- 
2.41.0


--nextPart4211155.1IzOArtZ34--






Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/