cortex_m: Add debug symbols for OpenOCD/GDB thread support
This commit is contained in:
parent
9a0f3a9e40
commit
9d403d95ce
|
@ -3,3 +3,4 @@ transport select hla_swd
|
|||
|
||||
set WORKAREASIZE 0x4000
|
||||
source [find target/nrf51.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -15,3 +15,4 @@ transport select hla_jtag
|
|||
set WORKAREASIZE 0x8000
|
||||
set CHIPNAME lm4f120h5qr
|
||||
source [find target/stellaris.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -13,3 +13,4 @@ jtag_ntrst_delay 100
|
|||
reset_config trst_and_srst
|
||||
|
||||
source [find target/stm32f1x.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -48,3 +48,4 @@ adapter_khz 1000
|
|||
$_TARGETNAME configure -event gdb-attach {
|
||||
halt
|
||||
}
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -6,3 +6,4 @@ ftdi_layout_signal nTRST -data 0x0800
|
|||
ftdi_layout_signal nSRST -data 0x0400
|
||||
|
||||
source [find target/stm32f1x.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -6,3 +6,4 @@ ftdi_layout_signal nTRST -data 0x0800
|
|||
ftdi_layout_signal nSRST -data 0x0400
|
||||
|
||||
source [find target/stm32f1x.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -3,3 +3,4 @@ transport select hla_swd
|
|||
|
||||
set WORKAREASIZE 0x2800
|
||||
source [find target/stm32l1.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/stm32f4discovery.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/st_nucleo_f0.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/st_nucleo_f0.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
#source [find board/st_nucleo_f1.cfg]
|
||||
source [find board/st_nucleo_f103rb.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/st_nucleo_f3.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/st_nucleo_f3.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/st_nucleo_f4.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/st_nucleo_l1.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -69,3 +69,4 @@ if {![using_hla]} {
|
|||
$_TARGETNAME configure -event reset-init {
|
||||
adapter_khz 24000
|
||||
}
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/atmel_saml21_xplained_pro.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/atmel_samr21_xplained_pro.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/stm32f0discovery.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/stm32f3discovery.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -1 +1,2 @@
|
|||
source [find board/stm32f4discovery.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
|
@ -3,3 +3,4 @@ transport select hla_swd
|
|||
|
||||
set WORKAREASIZE 0x4000
|
||||
source [find target/nrf51.cfg]
|
||||
$_TARGETNAME configure -rtos auto
|
||||
|
|
11
core/sched.c
11
core/sched.c
|
@ -53,6 +53,17 @@ volatile kernel_pid_t sched_active_pid = KERNEL_PID_UNDEF;
|
|||
clist_node_t sched_runqueues[SCHED_PRIO_LEVELS];
|
||||
static uint32_t runqueue_bitcache = 0;
|
||||
|
||||
/* Needed by OpenOCD to read sched_threads */
|
||||
__attribute__((used)) __attribute__((section (".openocd")))
|
||||
uint8_t max_threads = sizeof(sched_threads) / sizeof(thread_t*);
|
||||
|
||||
#ifdef DEVELHELP
|
||||
/* OpenOCD can't determine struct offsets and additionally this member is only
|
||||
* available if compiled with DEVELHELP */
|
||||
__attribute__((used)) __attribute__((section (".openocd")))
|
||||
uint8_t _tcb_name_offset = offsetof(thread_t, name);
|
||||
#endif
|
||||
|
||||
#ifdef MODULE_SCHEDSTATISTICS
|
||||
static void (*sched_cb) (uint32_t timestamp, uint32_t value) = NULL;
|
||||
schedstat sched_pidlist[KERNEL_PID_LAST + 1];
|
||||
|
|
|
@ -117,6 +117,7 @@ SECTIONS
|
|||
_srelocate = .;
|
||||
*(.ramfunc .ramfunc.*);
|
||||
*(.data .data.*);
|
||||
KEEP (*(.openocd .openocd.*))
|
||||
. = ALIGN(4);
|
||||
_erelocate = .;
|
||||
} > ram
|
||||
|
|
Loading…
Reference in New Issue