backbone.ws

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
develop:gdb:cross_gdbserver [2014/07/17 11:40] – created kolandevelop:gdb:cross_gdbserver [2014/07/17 12:35] (current) kolan
Line 13: Line 13:
 Secondly, run Gdbserver on the target: Secondly, run Gdbserver on the target:
 <code bash | Run Gdbserver> <code bash | Run Gdbserver>
-user@target$ gdbserver 192.168.1.2:5555 run/ParseTest.exe -t ../test/tex/formular.tex -w gen.tex | socat TCP4:192.168.1.1:7777 STDIN+user@target$ gdbserver 192.168.1.2:5555 run/Application.exe --arg1=hello --arg2=world | socat TCP4:192.168.1.1:7777 STDIN
 </code> </code>
  
 Finally, connect to the target using Cgdb, specifying executable with debug symbols and the source code dirs: Finally, connect to the target using Cgdb, specifying executable with debug symbols and the source code dirs:
 <code bash | Cgdb> <code bash | Cgdb>
-user@host$ cgdb -s Application.exe -d src -d test+user@host$ cgdb -s Application.exe -d src -d test # or cgdb -s MyDLL.dll -d src -d test
 (gdb) target remote 192.168.1.2:5555 (gdb) target remote 192.168.1.2:5555
 (gdb) b main (gdb) b main
 (gdb) c (gdb) c
 </code> </code>