| [hatari-devel] Small patch to support debugging Line-F exceptions |
[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]
Hi,
Attached is a small patch to enable hatari to also enter debugger on Line-F exceptions.
There is also a small bug in disassembling the instructions (using the UAE disassembler):
0102F3DC F23C 5623 4058 0000 0000 0000 fmul.d ##9.600000e+01,fp4
(note the duplicate '##' for the constant)
diff --git a/src/debug/log.c b/src/debug/log.c
index 8f1c93f5..a371003c 100644
--- a/src/debug/log.c
+++ b/src/debug/log.c
@@ -52,6 +52,7 @@ static flagname_t ExceptionFlags[] = {
{ EXCEPT_PRIVILEGE, "privilege" },
{ EXCEPT_TRACE, "trace" },
{ EXCEPT_NOHANDLER, "nohandler" },
+ { EXCEPT_FLINE, "fline" },
{ EXCEPT_DSP, "dsp" },
diff --git a/src/debug/log.h b/src/debug/log.h
index 1b7f9247..9d73e457 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_ALINE (1<<11)
+#define EXCEPT_FLINE (1<<12)
/* DSP exception flags */
#define EXCEPT_DSP (1<<9)
diff --git a/src/debug/debugui.c b/src/debug/debugui.c
index e963a2e7..ca544cc8 100644
--- a/src/debug/debugui.c
+++ b/src/debug/debugui.c
@@ -1405,7 +1405,9 @@ 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_ALINE, "A-line" }, /* 10 */
+ { EXCEPT_FLINE, "F-line" } /* 11 */
};
nr -= 2;
if (nr < 0 || nr >= ARRAY_SIZE(ex))
| Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |