openocd/src/target
David Brownell 9ac7cdec82 target: make "examined" flag be per-target
Previously this flag was stored in "target_type", so that for example
if there were two ARM7TDMI targets in a scan chain, both would claim
to have been examined although only the first one actually had its
examine() method called.

Move this state to where it should have been in the first place, and
hide a method that didn't need exposure ... the flag is write-once.

Provide some doxygen.  The examine() method is confusing, since it
isn't separating one-time setup from the after-each-reset stuff.  And
the ARM7/ARM9 version is, somewhat undesirably, not leaving the debug
state alone after reset ... probably more of an issue for trace setup
than for watchpoints and breakpoints.

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
2009-11-15 10:35:25 -08:00
..
ecos - reverted some of the changes that possibly broke arm926ejs. Waiting 2008-04-04 13:47:38 +00:00
xscale Remove annoying end-of-line whitespace from most src/* 2009-09-21 18:40:55 +00:00
algorithm.c reg_param_t -> struct reg_param 2009-11-13 11:58:09 -08:00
algorithm.h reg_param_t -> struct reg_param 2009-11-13 11:58:09 -08:00
arm_adi_v5.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
arm_adi_v5.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
arm_disassembler.c target_t -> struct target 2009-11-13 11:58:14 -08:00
arm_disassembler.h target_t -> struct target 2009-11-13 11:58:14 -08:00
arm_jtag.c remove unused arm_jtag_buf_to_* helpers 2009-11-14 18:21:02 -08:00
arm_jtag.h remove unused arm_jtag_buf_to_* helpers 2009-11-14 18:21:02 -08:00
arm_simulator.c target_t -> struct target 2009-11-13 11:58:14 -08:00
arm_simulator.h target_t -> struct target 2009-11-13 11:58:14 -08:00
arm7_9_common.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm7_9_common.h ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm7tdmi.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm7tdmi.h ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm9tdmi.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm9tdmi.h ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm11_dbgtap.c ARM11: revert etmr/etmw commands 2009-11-13 16:56:11 -08:00
arm11_dbgtap.h arm11_sc7_action_t -> struct arm11_sc7_action 2009-11-13 11:58:09 -08:00
arm11.c target: make "examined" flag be per-target 2009-11-15 10:35:25 -08:00
arm11.h ARM11: revert etmr/etmw commands 2009-11-13 16:56:11 -08:00
arm720t.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm720t.h target_t -> struct target 2009-11-13 11:58:14 -08:00
arm920t.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm920t.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
arm926ejs.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
arm926ejs.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
arm966e.c compile with cygwin (32-bit) 2009-11-14 02:22:37 -08:00
arm966e.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
armv4_5_cache.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
armv4_5_cache.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
armv4_5_mmu.c target_t -> struct target 2009-11-13 11:58:14 -08:00
armv4_5_mmu.h target_t -> struct target 2009-11-13 11:58:14 -08:00
armv4_5.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
armv4_5.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
armv7a.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
armv7a.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
armv7m.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
armv7m.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
avrt.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
avrt.h avr_common_t -> struct avr_common 2009-11-13 11:58:10 -08:00
breakpoints.c compile with cygwin (32-bit) 2009-11-14 02:22:37 -08:00
breakpoints.h target_t -> struct target 2009-11-13 11:58:14 -08:00
cortex_a8.c target: make "examined" flag be per-target 2009-11-15 10:35:25 -08:00
cortex_a8.h target_t -> struct target 2009-11-13 11:58:14 -08:00
cortex_m3.c command_t -> struct command 2009-11-13 13:30:50 -08:00
cortex_m3.h target_t -> struct target 2009-11-13 11:58:14 -08:00
embeddedice.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
embeddedice.h target_t -> struct target 2009-11-13 11:58:14 -08:00
etb.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
etb.h etm_context_t -> struct etm_context 2009-11-13 11:58:13 -08:00
etm_dummy.c command_t -> struct command 2009-11-13 13:30:50 -08:00
etm_dummy.h etm_capture_driver_t -> struct etm_capture_driver 2009-11-13 11:58:11 -08:00
etm.c ETM: simplify ETM initialization code paths 2009-11-13 16:26:39 -08:00
etm.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
fa526.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
feroceon.c ARM7/ARM9: use shared examine() method 2009-11-13 16:26:39 -08:00
image.c target_t -> struct target 2009-11-13 11:58:14 -08:00
image.h target_t -> struct target 2009-11-13 11:58:14 -08:00
Makefile.am makefiles: improve build order 2009-11-11 05:40:48 -08:00
mips_ejtag.c mips_ejtag_t -> struct mips_ejtag 2009-11-13 11:58:11 -08:00
mips_ejtag.h mips_ejtag_t -> struct mips_ejtag 2009-11-13 11:58:11 -08:00
mips_m4k.c command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
mips_m4k.h target_t -> struct target 2009-11-13 11:58:14 -08:00
mips32_dmaacc.c mips_ejtag_t -> struct mips_ejtag 2009-11-13 11:58:11 -08:00
mips32_dmaacc.h mips_ejtag_t -> struct mips_ejtag 2009-11-13 11:58:11 -08:00
mips32_pracc.c improve mips32_pracc_context 2009-11-13 11:58:13 -08:00
mips32_pracc.h mips_ejtag_t -> struct mips_ejtag 2009-11-13 11:58:11 -08:00
mips32.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
mips32.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
oocd_trace.c command_t -> struct command 2009-11-13 13:30:50 -08:00
oocd_trace.h etm_context_t -> struct etm_context 2009-11-13 11:58:13 -08:00
register.c reg_t -> struct reg 2009-11-13 11:58:13 -08:00
register.h target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
target_request.c command_t -> struct command 2009-11-13 13:30:50 -08:00
target_request.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
target_type.h target: make "examined" flag be per-target 2009-11-15 10:35:25 -08:00
target.c target: make "examined" flag be per-target 2009-11-15 10:35:25 -08:00
target.h target: make "examined" flag be per-target 2009-11-15 10:35:25 -08:00
trace.c command_t -> struct command 2009-11-13 13:30:50 -08:00
trace.h command_context_t -> struct command_context 2009-11-13 13:25:47 -08:00
xscale.c target: remove unused "bitfield" infrastructure 2009-11-13 16:22:36 -08:00
xscale.h target_t -> struct target 2009-11-13 11:58:14 -08:00