Hello, I have implemented something for the handling of several target in smp : In config file , I have created a command :
target smp targetname1 targetname2 targetname3 ... all target have different coreid targetname1 has coreid 0 targetname2 has coreid 1 targetname3 has coreid 2 ... With this command only one gdb session is created for the list of target. I added commands to cortex_a : Commands apply to the current target (cortex_a8) cortex_a8 smp_on : following this command, the behavior is as follow. - the set of hardware breakpoint => the same hardware break point is set on all target list. - halt command => trigger the halt of the other target - resume command => trigger the write of context of all target in the list, the restart of current target launch the restart of the other. - a dedicated gdb command is implemented for switching the target displayed by the gdb session. - following a breakpoint: the target stopped by the breakpoint is displayed to the gdb session. cortex_a8 smp_off : the current target is the one displayed in the gdb session, only this target is controlled, this behavior is needed during system boot (u-boot for instance) What do you think of this smp feature ? Best regards _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development