tcl/target, board: remove useless gdb-attach event definitions

Since commit bae76053dc
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>
log_output
Tomas Vanek 2018-11-12 12:18:31 +01:00
parent 20113201df
commit ff555afc02
11 changed files with 0 additions and 37 deletions

View File

@ -1,3 +1 @@
source [find target/at91sam3sXX.cfg] source [find target/at91sam3sXX.cfg]
$_TARGETNAME configure -event gdb-attach { reset init }

View File

@ -1,3 +1 @@
source [find target/at91sam4sXX.cfg] source [find target/at91sam4sXX.cfg]
$_TARGETNAME configure -event gdb-attach { reset init }

View File

@ -143,7 +143,5 @@ proc imx6q_sabresd_init { } {
$_TARGETNAME.0 configure -event reset-assert { } $_TARGETNAME.0 configure -event reset-assert { }
# hook the init function into the reset-init event # hook the init function into the reset-init event
$_TARGETNAME.0 configure -event reset-init { imx6q_sabresd_init } $_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 # set a slow default JTAG clock, can be overridden later
adapter_khz 1000 adapter_khz 1000

View File

@ -10,9 +10,6 @@ reset_config srst_only srst_push_pull
source [find target/hi6220.cfg] 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 # make sure the default target is the boot core
targets ${_TARGETNAME}0 targets ${_TARGETNAME}0

View File

@ -12,9 +12,6 @@ reset_config srst_only srst_push_pull
source [find tcl/target/hi3798.cfg] 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 # make sure the default target is the boot core
targets ${_TARGETNAME}0 targets ${_TARGETNAME}0

View File

@ -48,7 +48,6 @@ target create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap \
$_TARGETNAME1 configure -event reset-start { adapter_khz 1000 } $_TARGETNAME1 configure -event reset-start { adapter_khz 1000 }
$_TARGETNAME1 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME1" $_TARGETNAME1 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME1"
$_TARGETNAME1 configure -event gdb-attach { halt }
# A9 core 1 # A9 core 1
@ -57,7 +56,6 @@ $_TARGETNAME1 configure -event gdb-attach { halt }
#$_TARGETNAME2 configure -event reset-start { adapter_khz 1000 } #$_TARGETNAME2 configure -event reset-start { adapter_khz 1000 }
#$_TARGETNAME2 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME2" #$_TARGETNAME2 configure -event reset-assert-post "cycv_dbginit $_TARGETNAME2"
#$_TARGETNAME2 configure -event gdb-attach { halt }
proc cycv_dbginit {target} { proc cycv_dbginit {target} {
# General Cortex-A8/A9 debug initialisation # General Cortex-A8/A9 debug initialisation

View File

@ -26,10 +26,3 @@ dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
target create $_TARGETNAME0 cortex_a -dap $_CHIPNAME.dap -coreid 0 -dbgbase 0x3fe10000 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 create $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000
target smp $_TARGETNAME0 $_TARGETNAME1 target smp $_TARGETNAME0 $_TARGETNAME1
$_TARGETNAME0 configure -event gdb-attach {
cortex_a dbginit
}
$_TARGETNAME1 configure -event gdb-attach {
cortex_a dbginit
}

View File

@ -57,4 +57,3 @@ adapter_khz 1000
$_TARGETNAME configure -event reset-start { adapter_khz 1000 } $_TARGETNAME configure -event reset-start { adapter_khz 1000 }
$_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME" $_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME"
$_TARGETNAME configure -event gdb-attach { halt }

View File

@ -33,8 +33,6 @@ jtag configure quark_d20xx.quark -event tap-disable \
target create quark_d20xx.quark quark_d20xx -endian little -chain-position quark_d20xx.quark 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 { quark_d20xx.quark configure -event reset-start {
# need to halt the target to write to memory # need to halt the target to write to memory
if {[quark_d20xx.quark curstate] ne "halted"} { halt } if {[quark_d20xx.quark curstate] ne "halted"} { halt }

View File

@ -63,11 +63,6 @@ target create $_TARGETNAME cortex_r4 -endian $_ENDIAN \
# TMS570 uses quirky BE-32 mode # TMS570 uses quirky BE-32 mode
$_CHIPNAME.dap ti_be_32_quirks 1 $_CHIPNAME.dap ti_be_32_quirks 1
$_TARGETNAME configure -event gdb-attach {
cortex_r4 dbginit
halt
}
$_TARGETNAME configure -event "reset-assert" { $_TARGETNAME configure -event "reset-assert" {
global _CHIPNAME global _CHIPNAME

View File

@ -206,10 +206,6 @@ dap create $_CHIPNAME.dap -chain-position $_CHIPNAME.cpu
target create $_TARGETNAME_1 cortex_a -dap $_CHIPNAME.dap -dbgbase $_DAP_DBG1 -coreid 0 -rtos linux 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] } { if { ![info exists TARGETNAME_2] } {
global _TARGETNAME_2 global _TARGETNAME_2
@ -221,10 +217,6 @@ set _TARGETNAME_2 $TARGETNAME_2
target create $_TARGETNAME_2 cortex_a -dap $_CHIPNAME.dap -dbgbase $_DAP_DBG2 -coreid 1 -rtos linux 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]} { if {![info exists SMP]} {
global _SMP global _SMP