change bounds check
authorbdemsky <bdemsky>
Wed, 29 Jun 2011 09:45:24 +0000 (09:45 +0000)
committerbdemsky <bdemsky>
Wed, 29 Jun 2011 09:45:24 +0000 (09:45 +0000)
Robust/src/Runtime/bamboo/multicoreruntime.c

index 37a772575aac41f1eb257b24cd2ac0eb06e451be..4d8e5f0e59d9037d4a991d69ed26784e2c51deb0 100644 (file)
@@ -504,9 +504,10 @@ struct ___String___ * NewString(const char *str,
 
 /* Generated code calls this if we fail a bounds check */
 
-void failedboundschk(int num) {
+ void failedboundschk(int num, int index, struct ArrayObject * ao) {
 #ifndef TASK
-  printf("Array out of bounds, %d \n", num);
+  printf("Array out of bounds at line %u with index %u of object %x with lengt\
+h %u\n", num, index, ao, ao->___length___);
 #ifdef THREADS
   threadexit();
 #elif defined MGC