summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-27 20:57:17 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-10-27 20:57:17 +0000
commitdf77b45054b7929b90f348481823d6b0b38fe219 (patch)
tree2fc5bd386c9e2241c55ac77b8c0c3e6314c85179 /src
parent63ac444ba9082ced6b82d152d8c0ab48bb40dcdf (diff)
downloadopenocd_libswd-df77b45054b7929b90f348481823d6b0b38fe219.tar.gz
openocd_libswd-df77b45054b7929b90f348481823d6b0b38fe219.tar.bz2
openocd_libswd-df77b45054b7929b90f348481823d6b0b38fe219.tar.xz
openocd_libswd-df77b45054b7929b90f348481823d6b0b38fe219.zip
Kees Jongenburger <kees.jongenburger@gmail.com> old" syntax target command appears to be broken
this patch addresses this issue git-svn-id: svn://svn.berlios.de/openocd/trunk@1107 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/target.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/target.c b/src/target/target.c
index 53f88c06..efb67a04 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -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: