summaryrefslogtreecommitdiffstats
path: root/docs/part-1/5-2_debug-first-app-cmd.md
diff options
context:
space:
mode:
authorScott Rifenbark <srifenbark@gmail.com>2019-05-06 13:53:15 -0700
committerScott Rifenbark <srifenbark@gmail.com>2019-05-06 13:53:15 -0700
commit327daf1e12f950b4700f9a8d8c10e143fa126b86 (patch)
tree88e7adf1591962b4947c75e6a46860d07a6ff835 /docs/part-1/5-2_debug-first-app-cmd.md
parentc4cabee5bacd0412ee29853a7f4d51b39b90089a (diff)
XDS Debugging: Rename of files and update devguides-book.yml
The debugging section for XDS needs new file names and also needs to fix the order in which the files appear as topics. I have done both. Change-Id: I57920f3c0860d1b5a7ab9299c538b57140579581 Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Diffstat (limited to 'docs/part-1/5-2_debug-first-app-cmd.md')
-rw-r--r--docs/part-1/5-2_debug-first-app-cmd.md69
1 files changed, 0 insertions, 69 deletions
diff --git a/docs/part-1/5-2_debug-first-app-cmd.md b/docs/part-1/5-2_debug-first-app-cmd.md
deleted file mode 100644
index 4d2ca84..0000000
--- a/docs/part-1/5-2_debug-first-app-cmd.md
+++ /dev/null
@@ -1,69 +0,0 @@
-# Debug using xds-gdb from command line
-
-## XDS remote debugging mode
-
-First the project you want to debug must be declared on an xds-server and this
-project may also has been built using using XDS (see [Create your first AGL application](./4_build-first-app.html) for more details).
-
-So to debug it you need to have the XDS agent - server chain in place and
-you also need the project and sdk unique id.
-
-You can find these IDs in project page of XDS dashboard or you can get them from command line using the `--list` option.
-
-This option lists all existing projects ID:
-
-```bash
-xds-gdb --list
-```
-
-Now to refer your project, just set `XDS_PROJECT_ID` and `XDS_SDK_ID` variables.
-
-You are now ready to use `xds-gdb` to for example cross debug your project.
-
-Here is an example to build and debug a project based on CMakefile and
-[cmake-apps-module](https://git.automotivelinux.org/src/cmake-apps-module/):
-
-```bash
-# Go into your project directory (for example helloworld-native-application)
-cd ~/xds-workspace
-git clone https://github.com/iotbzh/helloworld-native-application.git
-cd helloworld-service
-
-# Declare your project on xds-server
-# <for now, you can only do this step using xds HTML dashboard (see xds-server doc)>
-
-# Define XDS config
-cat <<EOF >./xds-config.env
-#optional if not default value: XDS_AGENT_URL=http://localhost:8800
-XDS_PROJECT_ID=IW7B4EE-DBY4Z74_myProject
-XDS_SDK_ID=poky-agl_aarch64_4.0.1
-EOF
-
-# Tell to xds-cli and xds-gdb which is your config file
-export XDS_CONFIG=../xds-gen3.conf
-
-# Create a new build directory
-mkdir build && cd build
-
-# Start remote cross build
-xds-cli exec -- cmake -DRSYNC_TARGET=root@myTarget ..
-xds-cli exec -- make
-xds-cli exec -- make remote-target-populate
-
-# Start debugging
-xds-gdb -x target/gdb-on-root@myTarget.ini
-```
-
-<!-- section-note -->
-**Note:** : [helloworld-native-application](https://github.com/iotbzh/helloworld-native-application) project is an AGL
-project based on [cmake-apps-module](https://git.automotivelinux.org/src/cmake-apps-module/)
-(refer to install cmake module [instructions](../../cmakeafbtemplates/dev_guide/installing-cmake.html)). This CMake templating, used to develop application
-with the AGL Application Framework, will automatically generate makefile rules
-(eg. `remote-target-populate`) or scripts (eg. `build/target/xxx` scripts).
-
-For more info about app-template, please refer to [this documentation](../../../#using-the-cmake-applications-module).
-<!-- end-section-note -->
-
-## Native debugging
-
-To enable native debugging mode, you need to define `XDS_NATIVE_GDB` variable.