Debugging with GDB

  • Debugging with GDB

  • GDB@wiki(GNU Debugger)
    GDB is a portable debugger that runs on many Unix-like systems and works for many programming languages.

  • The GNU Project Debugger

  • The ten secrets of embedded debugging

  • How to debug embedded systems?

SIGFPE

  • FPE: floating-point exception.
    The SIGFPE signal is sent to a process when it executes an erroneous arithmetic operation, such as division by zero.
    被零除 就是一个典型的 SIGFPE。
    Debugging with GDB_第1张图片
    all1-all2可能为零

    Debugging with GDB_第2张图片
    确保不被零除
  • C Programming Tutorial: Logical Operators;
Debugging with GDB_第3张图片
Terminate (core dump),Erroneous arithmetic operation

你可能感兴趣的:(Debugging with GDB)