]> git.sur5r.net Git - openocd/commitdiff
Kees Jongenburger <kees.jongenburger@gmail.com> old" syntax target command appears...
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 27 Oct 2008 20:57:17 +0000 (20:57 +0000)
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 27 Oct 2008 20:57:17 +0000 (20:57 +0000)
this patch addresses this issue

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

src/target/target.c

index 53f88c06495a955bb7e6643f6e24be84478aed19..efb67a040ffa3299347fbc617803d8485211e7b0 100644 (file)
@@ -3908,9 +3908,9 @@ jim_target( Jim_Interp *interp, int argc, Jim_Obj *const *argv )
                new_argv[4] = Jim_NewStringObj( interp, "-endian", -1 );
                new_argv[5] = goi.argv[1];
                new_argv[6] = Jim_NewStringObj( interp, "-chain-position", -1 );
-               new_argv[7] = goi.argv[2];
+               new_argv[7] = goi.argv[3];
                new_argv[8] = Jim_NewStringObj( interp, "-variant", -1 );
-               new_argv[9] = goi.argv[3];
+               new_argv[9] = goi.argv[4];
                new_argc = 10;
                /*
                 * new arg syntax: