From: Tomas Vanek Date: Wed, 3 Apr 2019 05:41:54 +0000 (+0200) Subject: target: fix copy&paste error in cget -coreid X-Git-Tag: v0.11.0-rc1~745 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=1f4596cc46c96471f32d81613a612a4adefe36ab target: fix copy&paste error in cget -coreid Command should return target->coreid, not target->working_area_size Solution appeared as an off topic fix in http://openocd.zylin.com/4935 Change-Id: Ic9701ce2001c75060dbaa75fbd013ed475a352e5 Suggested-by: Graham Sanderson Reported-by: Tim Newsome Signed-off-by: Tomas Vanek Reviewed-on: http://openocd.zylin.com/5035 Tested-by: jenkins Reviewed-by: Tim Newsome Reviewed-by: Matthias Welwarsky --- diff --git a/src/target/target.c b/src/target/target.c index 380a9fcdd2..bcc2c5e2ed 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -4831,7 +4831,7 @@ no_params: if (goi->argc != 0) goto no_params; } - Jim_SetResult(goi->interp, Jim_NewIntObj(goi->interp, target->working_area_size)); + Jim_SetResult(goi->interp, Jim_NewIntObj(goi->interp, target->coreid)); /* loop for more */ break;