This is an automated email from Gerrit. Tomas Vanek ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/4728
-- gerrit commit ceeb3e77392ba30ceaff39956491e65f32a10bde Author: Tomas Vanek <[email protected]> Date: Thu Oct 18 15:58:54 2018 +0200 target/arm_adi_v5: add chain_position Tcl getter [WIP] Change-Id: I724163c25002039fd3f1ef110f70c2b65cbcb4c5 Signed-off-by: Tomas Vanek <[email protected]> diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 8736299..2ab9bd3 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -1827,6 +1827,18 @@ COMMAND_HANDLER(dap_force_reconnect_command) return 0; } +static int jim_dap_chain_position(Jim_Interp *interp, int argc, Jim_Obj*const *argv) +{ + struct arm_dap_object *obj = Jim_CmdPrivData(interp); + + if (argc != 1) { + Jim_WrongNumArgs(interp, 1, argv, "Too many parameters"); + return JIM_ERR; + } + Jim_SetResult(interp, Jim_NewStringObj(interp, adiv5_get_dap(obj)->tap->dotted_name, -1)); + return JIM_OK; +} + const struct command_registration dap_instance_commands[] = { { .name = "info", @@ -1906,5 +1918,13 @@ const struct command_registration dap_instance_commands[] = { .help = "force a reconnect of the dap on next access", .usage = "", }, + { + .name = "chain_position", + .jim_handler = jim_dap_chain_position, + .mode = COMMAND_ANY, + .help = "Get configured chain position", + .usage = "", + }, + COMMAND_REGISTRATION_DONE }; -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
