Author: leo
Date: Mon Oct 31 02:59:49 2005
New Revision: 9674

Modified:
   trunk/src/jit_debug.c
   trunk/src/jit_debug_xcoff.c
Log:
fix off-by-one err in jit_debug.c

Modified: trunk/src/jit_debug.c
==============================================================================
--- trunk/src/jit_debug.c       (original)
+++ trunk/src/jit_debug.c       Mon Oct 31 02:59:49 2005
@@ -343,7 +343,7 @@ Parrot_jit_debug_stabs(Interp *interpret
     line = 1;
     lc = 0;
     debug = interpreter->code->debugs;
-    for (i = 0; i < jit_info->arena.map_size; i++) {
+    for (i = 0; i < interpreter->code->base.size; i++) {
         if (jit_info->arena.op_map[i].ptr) {
             op_info_t* op = &interpreter->op_info_table[
                 interpreter->code->base.data[i]];

Modified: trunk/src/jit_debug_xcoff.c
==============================================================================
--- trunk/src/jit_debug_xcoff.c (original)
+++ trunk/src/jit_debug_xcoff.c Mon Oct 31 02:59:49 2005
@@ -313,9 +313,10 @@ Parrot_jit_debug_stabs(Interp *interpret
     fprintf(stabs, ".line 1\n");
     line = 1;
     lc = 0;
-    for (i = 0; i < jit_info->arena.map_size; i++) {
+    for (i = 0; i < interpreter->code->base.size; i++) {
         if (jit_info->arena.op_map[i].ptr) {
-            op_info_t* op = 
&interpreter->op_info_table[interpreter->code->base.data[i]];
+            op_info_t* op = &interpreter->op_info_table[
+                interpreter->code->base.data[i]];
             if (interpreter->code->debugs) {
                 line = (int)interpreter->code->debugs->base.data[lc++];
             }

Reply via email to