openocd/src/target
Antonio Borneo 65de0d3bfa target: handle command 'target current' when no target is present
Is it possible to run OpenOCD without any target, for example to
only dump the rom-tables of an arm dap, or to perform low level
jtag operations.
But without any target created, the command 'target current'
causes OpenOCD to abruptly exit.

Handle in command 'target current' the case of no targets.

Change-Id: Ide15cb13bec84b88ccc3e7126523c04a6d70e636
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5881
Tested-by: jenkins
2020-11-04 17:38:20 +00:00
..
openrisc
riscv
a64_disassembler.c
a64_disassembler.h
aarch64.c
aarch64.h
adi_v5_dapdirect.c
adi_v5_jtag.c
adi_v5_swd.c
algorithm.c
algorithm.h
arc_cmd.c
arc_cmd.h
arc_jtag.c
arc_jtag.h
arc_mem.c
arc_mem.h
arc.c
arc.h
arm_adi_v5.c
arm_adi_v5.h
arm_cti.c
arm_cti.h
arm_dap.c
arm_disassembler.c
arm_disassembler.h
arm_dpm.c
arm_dpm.h
arm_jtag.c
arm_jtag.h
arm_opcodes.h
arm_semihosting.c
arm_semihosting.h
arm_simulator.c
arm_simulator.h
arm.h
arm7_9_common.c
arm7_9_common.h
arm7tdmi.c
arm7tdmi.h
arm9tdmi.c
arm9tdmi.h
arm11_dbgtap.c
arm11_dbgtap.h
arm11.c
arm11.h
arm720t.c
arm720t.h
arm920t.c
arm920t.h
arm926ejs.c
arm926ejs.h
arm946e.c
arm946e.h
arm966e.c
arm966e.h
armv4_5_cache.c
armv4_5_cache.h
armv4_5_mmu.c
armv4_5_mmu.h
armv4_5.c
armv4_5.h
armv7a_cache_l2x.c
armv7a_cache_l2x.h
armv7a_cache.c
armv7a_cache.h
armv7a_mmu.c
armv7a_mmu.h
armv7a.c
armv7a.h
armv7m_trace.c
armv7m_trace.h
armv7m.c
armv7m.h
armv8_cache.c
armv8_cache.h
armv8_dpm.c
armv8_dpm.h
armv8_opcodes.c
armv8_opcodes.h
armv8.c
armv8.h
avr32_ap7k.c
avr32_ap7k.h
avr32_jtag.c
avr32_jtag.h
avr32_mem.c
avr32_mem.h
avr32_regs.c
avr32_regs.h
avrt.c
avrt.h
breakpoints.c
breakpoints.h
cortex_a.c
cortex_a.h
cortex_m.c
cortex_m.h
dsp563xx_once.c
dsp563xx_once.h
dsp563xx.c
dsp563xx.h
dsp5680xx.c
dsp5680xx.h
embeddedice.c
embeddedice.h
esirisc_jtag.c
esirisc_jtag.h
esirisc_regs.h
esirisc_trace.c
esirisc_trace.h
esirisc.c
esirisc.h
etb.c
etb.h
etm_dummy.c
etm_dummy.h
etm.c
etm.h
fa526.c
feroceon.c
hla_target.c
image.c
image.h
lakemont.c
lakemont.h
ls1_sap.c
Makefile.am
mem_ap.c
mips_ejtag.c
mips_ejtag.h
mips_m4k.c
mips_m4k.h
mips_mips64.c
mips_mips64.h
mips32_dmaacc.c
mips32_dmaacc.h
mips32_pracc.c
mips32_pracc.h
mips32.c
mips32.h
mips64_pracc.c
mips64_pracc.h
mips64.c
mips64.h
nds32_aice.c
nds32_aice.h
nds32_cmd.c
nds32_cmd.h
nds32_disassembler.c
nds32_disassembler.h
nds32_edm.h
nds32_insn.h
nds32_reg.c
nds32_reg.h
nds32_tlb.c
nds32_tlb.h
nds32_v2.c
nds32_v2.h
nds32_v3_common.c
nds32_v3_common.h
nds32_v3.c
nds32_v3.h
nds32_v3m.c
nds32_v3m.h
nds32.c
nds32.h
oocd_trace.c
oocd_trace.h
quark_d20xx.c
quark_x10xx.c
register.c
register.h
semihosting_common.c
semihosting_common.h
smp.c
smp.h
startup.tcl
stm8.c
stm8.h
target_request.c
target_request.h
target_type.h
target.c target: handle command 'target current' when no target is present 2020-11-04 17:38:20 +00:00
target.h
testee.c
trace.c
trace.h
x86_32_common.c
x86_32_common.h
xscale.c
xscale.h