Tue Jan 28 15:39:50 1997 Geoffrey Noer <noer@cygnus.com>
authorGeoffrey Noer <noer@cygnus>
Tue, 28 Jan 1997 23:43:36 +0000 (23:43 +0000)
committerGeoffrey Noer <noer@cygnus>
Tue, 28 Jan 1997 23:43:36 +0000 (23:43 +0000)
        * mn10200-tdep.c (mn10200_frame_chain): get basic backtracing
        working

gdb/ChangeLog
gdb/mn10200-tdep.c

index 0d48ce531cdfc50682b9ab1d678646b79391f454..54209bcb460c0e240b9870f4cac2a68f0ddfcb7f 100644 (file)
@@ -1,3 +1,8 @@
+Tue Jan 28 15:39:50 1997  Geoffrey Noer  <noer@cygnus.com>
+
+       * mn10200-tdep.c (mn10200_frame_chain): get basic backtracing
+       working
+
 Mon Jan 27 14:31:52 1997  Mark Alexander  <marka@cygnus.com>
 
 First set of changes for mips16:
index 03f3cd284b11bd9775b4ede8ba99ce06ade7de02..a1f3a112c3d716b7a4000327eef7ed1a0feea7ab 100644 (file)
@@ -72,7 +72,6 @@ mn10200_frame_chain (fi)
 
   /* current pc is fi->pc */
   /* current fp is fi->frame */  
-
   /* current sp is: */
   curr_sp = read_register (SP_REGNUM);
 
@@ -95,22 +94,22 @@ mn10200_frame_chain (fi)
     {
        /* printf("scanning prologue\n"); */
        /* FIXME -- fill out this case later */
-        return 0x666; /* bogus value */
+        return 0x0; /* bogus value */
     }
 
   if (past_prologue) /* if we don't need to scan the prologue */
     {
-/*    printf("we're past the prologue\n"); */
       callers_pc = fi->frame - REGISTER_SIZE;
-      callers_fp = fi->frame - ((n_movm_args + 1) * REGISTER_SIZE);
-/*
+      callers_fp = fi->frame - (4 * REGISTER_SIZE);
+
+#if 0
       printf("callers_pc = 0x%x ; callers_fp = 0x%x\n",
             callers_pc, callers_fp);
-
       printf("*callers_pc = 0x%x ; *callers_fp = 0x%x\n",
             read_memory_integer(callers_pc, REGISTER_SIZE),
             read_memory_integer(callers_fp, REGISTER_SIZE));
-*/
+#endif
+
       return read_memory_integer(callers_fp, REGISTER_SIZE);
     }