Since commit
bae76053dc515252dc5c8235b9a848e461080c66
gdb-attach event is defined as halt by default.
Remove useless and in case of bcm281xx wrong definitions of the event.
Change-Id: I8e69780a93722eb9392673303f54d502e71eceb6
Signed-off-by: Tomas Vanek <vanekt@fbl.cz>
Reviewed-on: http://openocd.zylin.com/4763
Tested-by: jenkins
Reviewed-by: Steven Stallion <sstallion@gmail.com>
source [find target/at91sam3sXX.cfg]
-
-$_TARGETNAME configure -event gdb-attach { reset init }
source [find target/at91sam4sXX.cfg]
-
-$_TARGETNAME configure -event gdb-attach { reset init }
$_TARGETNAME.0 configure -event reset-assert { }
# hook the init function into the reset-init event
$_TARGETNAME.0 configure -event reset-init { imx6q_sabresd_init }
-# make sure target is halted when gdb attaches
-$_TARGETNAME.0 configure -event gdb-attach { halt }
# set a slow default JTAG clock, can be overridden later
adapter_khz 1000
source [find target/hi6220.cfg]
-# halt the cores when gdb attaches
-${_TARGETNAME}0 configure -event gdb-attach "halt"
-
# make sure the default target is the boot core
targets ${_TARGETNAME}0
source [find tcl/target/hi3798.cfg]
-# halt the cores when gdb attaches
-${_TARGETNAME}0 configure -event gdb-attach "halt"
-
# make sure the default target is the boot core
targets ${_TARGETNAME}0
$_TARGETNAME1 configure -event reset-start { adapter_khz 1000 }
$_TARGETNAME1 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME1"
-$_TARGETNAME1 configure -event gdb-attach { halt }
# A9 core 1
#$_TARGETNAME2 configure -event reset-start { adapter_khz 1000 }
#$_TARGETNAME2 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME2"
-#$_TARGETNAME2 configure -event gdb-attach { halt }
proc cycv_dbginit {target} {
# General Cortex-A8/A9 debug initialisation
target create $_TARGETNAME0 cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x3fe10000
target create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000
target smp $_TARGETNAME0 $_TARGETNAME1
-
-$_TARGETNAME0 configure -event gdb-attach {
- cortex_a dbginit
-}
-$_TARGETNAME1 configure -event gdb-attach {
- cortex_a dbginit
-}
$_TARGETNAME configure -event reset-start { adapter_khz 1000 }
$_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME"
-$_TARGETNAME configure -event gdb-attach { halt }
target create quark_d20xx.quark quark_d20xx -endian little -chain-position quark_d20xx.quark
-quark_d20xx.quark configure -event gdb-attach { halt }
-
quark_d20xx.quark configure -event reset-start {
# need to halt the target to write to memory
if {[quark_d20xx.quark curstate] ne "halted"} { halt }
# TMS570 uses quirky BE-32 mode
$_CHIPNAME.dap ti_be_32_quirks 1
-$_TARGETNAME configure -event gdb-attach {
- cortex_r4 dbginit
- halt
-}
-
$_TARGETNAME configure -event "reset-assert" {
global _CHIPNAME
target create $_TARGETNAME_1 cortex_a -dap $_CHIPNAME.dap -dbgbase $_DAP_DBG1 -coreid 0 -rtos linux
-$_TARGETNAME_1 configure -event gdb-attach {
- halt
-}
-
if { ![info exists TARGETNAME_2] } {
global _TARGETNAME_2
target create $_TARGETNAME_2 cortex_a -dap $_CHIPNAME.dap -dbgbase $_DAP_DBG2 -coreid 1 -rtos linux
-$_TARGETNAME_2 configure -event gdb-attach {
- halt
-}
-
if {![info exists SMP]} {
global _SMP