让gdb暂停程序执行的三种方式

让gdb暂停程序执行的三种方式

Content #

There are three ways to instruct GDB to pause execution of your program, what are they?

  1. A breakpoint tells GDB to pause execution at a particular locationwithin the program.
  2. A watchpoint tells GDB to pause execution when a particular memory location (or an expression involving one or more locations) changes value.
  3. A catchpoint tells GDB to pause execution when a particular event occurs.

From #