OpenOCD threads support

Hi all,

A few months ago @daniel-k worked on RIOT support in OpenOCD ([1], [2]). The patch on OpenOCD side has never been merged and was quite outdated. So I took the freedom (after checking with Daniel :wink: to update it and reopen a PR on OpenOCD [3]. It would be great if some of you could help testing and reviewing to have this merged!



[1] [2] [3]

Hi Vincent,

just a quick “black box” test … openocd master branch with patch 4256 works on my board (cc3200-launchxl)

Waiting to see this patch merged!Greetings Attilio

Open On-Chip Debugger 0.10.0+dev-00199-g667cf951 (2017-10-17-19:45) Licensed under GNU GPL v2 For bug reports, read main () at /home/adona/ZAKKE/NAIS/burba/apps/hello-world/main.c:27 27 puts(“Hello World!”); Loading section .text, size 0x38f8 lma 0x20004000 Loading section .data, size 0x88 lma 0x200078f8 Start address 0x20004000, load size 14720 Transfer rate: 7 KB/sec, 7360 bytes/write. Breakpoint 1 at 0x200056aa: file /home/adona/ZAKKE/NAIS/burba/apps/hello-world/main.c, line 27. [New Thread 1] [Switching to Thread 2]

Thread 1 hit Breakpoint 1, main () at /home/adona/ZAKKE/NAIS/burba/apps/hello-world/main.c:27 27 puts(“Hello World!”); (gdb) info threads Id Target Id Frame

  • 1 Thread 2 (Name: main, Running) main () at /home/adona/ZAKKE/NAIS/burba/apps/hello-world/main.c:27 2 Thread 1 (Name: idle, Pending) idle_thread (arg=0x0) at /home/adona/ZAKKE/NAIS/burba/RIOT/core/kernel_init.c:64 (gdb)