dimecres, 22 de setembre del 2010

GDB debugging tips

These are several hints when using gdb that are seldom used enough to forget them, but often still important and useful:
  • Debugging child processes (e.g. allowing a breakpoint to work once the process forks): set follow-fork-mode child.
  • Setting a hardware watchpoint: watch *(&<address>).

Cap comentari:

Publica un comentari a l'entrada