Found a couple of issues with the targets cmd fixes seg fault with multiple targets and fixes printing the target names.
Cheers Spen Index: target.c =================================================================== --- target.c (revision 1186) +++ target.c (working copy) @@ -1362,7 +1362,7 @@ if (argc == 1) { /* try as tcltarget name */ - for( target = all_targets ; target ; target++ ){ + for( target = all_targets ; target ; target = target->next ){ if( target->cmd_name ){ if( 0 == strcmp( args[0], target->cmd_name ) ){ /* MATCH */ @@ -1388,8 +1388,9 @@ cmd_ctx->current_target = target->target_number; return ERROR_OK; } - DumpTargets: +DumpTargets: + target = all_targets; command_print(cmd_ctx, " CmdName Type Endian ChainPos State "); command_print(cmd_ctx, "-- ---------- ---------- ---------- -------- ----------"); while (target) _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development