Debugging

Some effort have been made to ease the debugging of the program.

The file pinapa-config.h should give you the informations needed to start.

GDB user-defined commands :

Some gdb user-defined commands are provided in utils/gdbinit. To use them, type
source utils/gdbinit 
, or put this line in a file .gdbinit in the directory from which you launch gdb.

To get help about one command, type

help
  <command>
at the gdb prompt. Interesting commands are :

Pieces of C++ code usefull for debugging.

Some code in the project is only usefull when using a debugger. Usually, this code is protected by
  #ifdef PINAPA_GDB
  
  #endif

In particular, the function pinapa_breakpoint() is an empty function on which a breakpoint should be set. This is usefull to put hardcoded conditional breakpoints like

  if(...) {
    pinapa_breakpoint();
  }
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page