Updated GDB ini file to load binding symbols directly from SDK
[apps/agl-service-unicens.git] / conf.d / templates / gdb / gdb-on-target.in
1 # gdb-remote.init file for IDE
2 # Object: allow to use standard gdb to remote debug a target
3 # Usage: remote-target-populate update script under ./build directory
4 # Author: Fulup Ar Foll (IoT.bzh)
5 # Reference: https://blog.flameeyes.eu/2010/02/remote-debugging-with-gdb-part-2-gdb/
6
7 # Start gdbserver on target; make sure that gdbserver and binder run in the same directory to access binding symbols, finally connect through SSH link
8 target remote | ssh @RSYNC_TARGET@  gdbserver - afb-daemon --port=@AFB_REMPORT@ --workdir=@RSYNC_PREFIX@/@PROJECT_NAME@ --roothttp=./htdocs --ldpath=./lib --verbose --token=@AFB_TOKEN@
9
10 # try to load binding's symbols locally
11 set auto-solib-add on
12 set solib-search-path @CMAKE_CURRENT_BINARY_DIR@/@PROJECT_PKG_DIR@/lib
13
14 # Replace run by continue (gdb use 'run' when gdbserver wants 'continue')
15 define run
16 continue
17 end