简体   繁体   English

cortex-m3无法调试。 原因-SIGINT

[英]cortex-m3 can't debug. reason - SIGINT

I try to debug cortex-M3 microcontroller. 我尝试调试cortex-M3微控制器。 There is SysTick interrupt enabled in firmware. 固件中启用了SysTick中断。 So I can't debug program. 所以我无法调试程序。 There is what i get: 我得到了什么:

 C:\Users\al\Desktop\eclipse\arm-toolchain\bin>arm-none-eabi-gdb.exe ../../work_d
    ir/mdr1986be91_94_dev_board/Debug/mdr1986be91_94_dev_board.elf
    GNU gdb (Sourcery G++ Lite 2011.03-42) 7.2.50.20100908-cvs
    ...
    (gdb) target remote localhost:3333
    ...
    (gdb) c
    Continuing.

    Program received signal SIGINT, Interrupt.
    0x0000001c in ?? ()
        at ../Libraries/MDR32F9Qx_StdPeriph_Driver/src/MDR32F9Qx_rst_clk.c:1642
    1642        statusreg = MDR_BKP->REG_0F;
    (gdb)

Debugging is stopped when an interrupt occurs. 发生中断时,调试将停止。 How to fix that? 如何解决?

You can tell debugger not to stop on some signal with handle command. 您可以使用handle命令告诉调试器不要在某些信号上停止。 So in your case it would be: 因此,在您的情况下,它将是:

handle SIGINT nostop 处理SIGINT不停

More about it in gdb manual . 有关更多信息,请参见gdb手册

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM