Differences between revisions 1 and 2
Revision 1 as of 2016-02-11 02:37:09
Size: 365
Editor: AndrewStone
Comment:
Revision 2 as of 2016-02-11 02:37:51
Size: 471
Editor: AndrewStone
Comment:
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:

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

Debugging

  • Start gdb instead of your program

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

echo /usr/bin/gnome-terminal --window --command "gdb --args $0.bin $1 $2 $3 $4 $5 $6 $7 $8 $9"
/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.

SAFplus: SAFplus Management Developer's Guide (last edited 2017-09-18 09:07:52 by HungTa)