tcl/target, board: remove useless gdb-attach event definitions 63/4763/2
authorTomas Vanek <vanekt@fbl.cz>
Mon, 12 Nov 2018 11:18:31 +0000 (12:18 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Mon, 26 Nov 2018 09:31:09 +0000 (09:31 +0000)
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>
tcl/board/atmel_sam3s_ek.cfg
tcl/board/atmel_sam4s_ek.cfg
tcl/board/fsl_imx6q_sabresd.cfg
tcl/board/lemaker_hikey.cfg
tcl/board/tocoding_poplar.cfg
tcl/target/altera_fpgasoc.cfg
tcl/target/bcm281xx.cfg
tcl/target/imx6.cfg
tcl/target/quark_d20xx.cfg
tcl/target/ti_tms570.cfg
tcl/target/u8500.cfg

index 38b54b7b0e8ec3499679fc78de373fbfff39677b..6e8ffe4172a4cd0e286ef8d50402f3e9617c5cda 100644 (file)
@@ -1,3 +1 @@
 source [find target/at91sam3sXX.cfg]
 source [find target/at91sam3sXX.cfg]
-
-$_TARGETNAME configure -event gdb-attach { reset init }
index dcfa900dc55017023b324e11a09ba5b2c632fad0..ca11e5487110f1488fa6f4defd88377e076db331 100644 (file)
@@ -1,3 +1 @@
 source [find target/at91sam4sXX.cfg]
 source [find target/at91sam4sXX.cfg]
-
-$_TARGETNAME configure -event gdb-attach { reset init }
index 797e2de5f5a0583f6e968d766ea1516545d88fcb..e1f0892f038da703bc1662e9cc2f13dcae29e332 100644 (file)
@@ -143,7 +143,5 @@ proc imx6q_sabresd_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 }
 $_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
 # set a slow default JTAG clock, can be overridden later
 adapter_khz 1000
index d724440481f6ec8f4ae8ff4830e3640ff57dd7f7..ee677c34b8bb8e4a3a7c40b681b1d03c4aff3a9a 100644 (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
 targets ${_TARGETNAME}0
 
 # make sure the default target is the boot core
 targets ${_TARGETNAME}0
 
index fd6615605d7e117bc05df3b3defdcef0d298d9ca..d8b833004d14fa943cb1c79facaf64e34c5ed79e 100644 (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
 targets ${_TARGETNAME}0
 
 # make sure the default target is the boot core
 targets ${_TARGETNAME}0
 
index 1fbc5a375a08402679e8ae8e01b9e2b99ca5f660..9a83b5ccb0d2c0b19e11c14248345b1698863679 100644 (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-assert-post "cycv_dbginit $_TARGETNAME1"
 
 $_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
 
 
 # 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-assert-post "cycv_dbginit $_TARGETNAME2"
 
 #$_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
 
 proc cycv_dbginit {target} {
         # General Cortex-A8/A9 debug initialisation
index 6432a2092671f78d271b9c77d3c512c8f45be9c8..0715d82d8114c79bcbba67938b5fa3c0be6473db 100644 (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 $_TARGETNAME1 cortex_a -dap $_CHIPNAME.dap -coreid 1 -dbgbase 0x3fe12000
 target smp $_TARGETNAME0 $_TARGETNAME1
 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
-}
index 5b59ecf86a7111de8135da4f3753dc79b438eff2..8a32517f311d39d339592dff9c09e07fd5cb260d 100644 (file)
@@ -57,4 +57,3 @@ adapter_khz 1000
 $_TARGETNAME configure -event reset-start { adapter_khz 1000 }
 
 $_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME"
 $_TARGETNAME configure -event reset-start { adapter_khz 1000 }
 
 $_TARGETNAME configure -event reset-assert-post "imx6_dbginit $_TARGETNAME"
-$_TARGETNAME configure -event gdb-attach { halt }
index 419f9dc4df40a6135c81589717a1ad2bc182cfcd..7d718c26dc2ef22d1278904f4c6e102bf14e598f 100644 (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 {
        # need to halt the target to write to memory
        if {[quark_d20xx.quark curstate] ne "halted"} { 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 }
index 1c89b8ce51c176aa498c391086127488095dd3aa..ce3a17696eaa9e263839220a2bc61b07cde84131 100644 (file)
@@ -63,11 +63,6 @@ target create $_TARGETNAME cortex_r4 -endian $_ENDIAN \
 # TMS570 uses quirky BE-32 mode
 $_CHIPNAME.dap ti_be_32_quirks 1
 
 # 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
 
 $_TARGETNAME configure -event "reset-assert" {
        global _CHIPNAME
 
index 7d8bfe3757e4a21965c742c517d695f96b78c115..1313efd3a22a7b00cf7951b7ed4558466a95984d 100644 (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] } {
 global _TARGETNAME_2
 
 if { ![info exists 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]} {
 global _SMP
 
 if {![info exists SMP]} {
 global _SMP

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)