FreeRTOS aware debugging with openocd

Hi,

I’m trying to debug a FreeRTOS project using openocd and arm-none-eabi-gdb

I’m starting openocd using:

openocd -f /usr/local/share/openocd/scripts/board/stm32f0discovery.cfg -c "stm32f0x.cpu configure -rtos auto"

and my .gdbinit file has the following contents:

target remote localhost:3333
monitor reset halt
file build/fw.elf
load
continue
focus next

The problem is that when I try to continue i get the error message “Cannot execute this command without a live selected thread.” and I can’t get passed that.

What should I do?

Thanks.