]> git.sur5r.net Git - openocd/commitdiff
David Brownell <david-b@pacbell.net> Bugfix: $target_name cget/configure -work-area...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 8 Jun 2009 06:18:13 +0000 (06:18 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 8 Jun 2009 06:18:13 +0000 (06:18 +0000)
should return the "is it backed up?" flag, not the work area size.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2108 b42882b7-edfa-0310-969c-e2dbd0fdcd60

src/target/target.c

index eac8763388e0c71d98e61aa81bbfd6c2932f5eae..8bc8e4c0bdc9d0e767ed2a6f412adf8a23c57e57 100644 (file)
@@ -3413,7 +3413,7 @@ static int target_configure( Jim_GetOptInfo *goi, target_t *target )
                                        goto no_params;
                                }
                        }
-                       Jim_SetResult( interp, Jim_NewIntObj( goi->interp, target->working_area_size ) );
+                       Jim_SetResult(interp, Jim_NewIntObj(goi->interp, target->backup_working_area));
                        /* loop for more e*/
                        break;