This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

gcc编译出来的utils.c中在gdb中单步执行会卡死在 " bne UtilsDelay\n"

void __attribute__((naked))
UtilsDelay(unsigned long ulCount)
{
__asm(" subs r0, #1\n"
" bne UtilsDelay\n"
" bx lr");
}
一旦执行了subs r0, #1\n"后就出现卡斯的情况