Changes

Jump to: navigation, search
The example project
***Start a remote debug session.
*<code>cross-build.sh</code>
**This script is invoked in turn by <code>remote-debugging.sh</code> to run the actual cross build process. The final commands that triggers the actual building process is <code>make hello</code>, tha tis the same command used to build the program manually.
*<code>start-gdbserver.sh</code>
**This script is invoked by <code>remote-debugging.sh</code> to start a <code>gdbserver</code> instance on the target.
*<code>launch.json</code>
**In this file two configurations are defined:
***<code>(gdb) Native launch</code>****This is used to build and debug the application on the host machine***<code>(gdb) Cross launch</code>****This is used to build the application on the host machine and to debug it on the target machine
*<code>tasks.json</code>
**In this file two tasks are defined:
***<code>native build</code>
****This is used to build the program for the host target. In this case, the explicit command is run (<code>gcc -g -o hello.x86 hello.c</code>)
***<code>build and start remote debugging</code>
****As stated before, this task invokes the <code>remote-debugging.sh</code> script. Please note
4,650
edits

Navigation menu