This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

gdb cannot step or next

This might not be the correct place/forum to ask this question.

Since a couple of days, I am not able to step or next with gdb. I understand that gdb needs to know what library is used in order to be able to step into a function, but this is also true in code that I wrote myself. Whenever I try one of the commands, gdb seems to continue (and even restart the application, but that might be because the ble connection was lost due to the breakpoint, and the other part of my code).

The compile flags that I use for debugging are CFLAGS += -Wall -Werror -O0 -g3. (I have copied the all the flags from the ble_app_hrs_freertos example)

Does freertos need any specific debug flags?

Related