Revision 3 as of 2016-02-11 20:54:22

Clear message

Debugging

Rename your program 'X' to X.bin. Next create an executable script X with this content:

   1 #!/bin/bash
   2 echo /usr/bin/gnome-terminal --window --command "gdb --args $0.bin $1 $2 $3 $4 $5 $6 $7 $8 $9"
   3 /usr/bin/gnome-terminal --window --command "gdb --args $0.bin $1 $2 $3 $4 $5 $6 $7 $8 $9"

Now when SAFplus starts your program, it will actually start a window and run your program inside gdb.