Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
develop:gdb:cross_gdbserver [2014/07/17 11:40] – created kolan | develop: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: | + | user@target$ gdbserver 192.168.1.2: |
</ | </ | ||
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 |
(gdb) target remote 192.168.1.2: | (gdb) target remote 192.168.1.2: | ||
(gdb) b main | (gdb) b main | ||
(gdb) c | (gdb) c | ||
</ | </ |