Made debugger compile and marginally work on non-Intel archs.
diff --git a/debugger/stack.c b/debugger/stack.c
index 1dc44d5..4965e1b 100644
--- a/debugger/stack.c
+++ b/debugger/stack.c
@@ -53,6 +53,7 @@
*/
void DEBUG_InfoStack(void)
{
+#ifdef __i386__
DBG_ADDR addr;
addr.type = NULL;
@@ -70,9 +71,10 @@
DEBUG_ExamineMemory( &addr, 24, 'w' );
}
fprintf(stderr,"\n");
+#endif
}
-
+#ifdef __i386__
static void DEBUG_ForceFrame(DBG_ADDR *stack, DBG_ADDR *code, int frameno, int bits, int noisy)
{
int theframe = nframe++;
@@ -333,6 +335,9 @@
}
if (noisy) fprintf( stderr, "\n" );
}
+#endif
+
+
/***********************************************************************
* DEBUG_BackTrace
@@ -341,7 +346,9 @@
*/
void DEBUG_BackTrace(void)
{
+#ifdef __i386__
DEBUG_DoBackTrace( TRUE );
+#endif
}
/***********************************************************************
@@ -351,7 +358,9 @@
*/
void DEBUG_SilentBackTrace(void)
{
+#ifdef __i386__
DEBUG_DoBackTrace( FALSE );
+#endif
}
int