From eaeadf682659c15f34aaef3a88ad01b6b7db4084 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Wed, 19 Jul 2017 18:49:37 +0200 Subject: Fix: bad afb-daemon flag, disable auto answer 'no' Change-Id: I3ee63512433c869fdd809ee1b6571205cd07a4e1 Signed-off-by: Romain Forlot --- cmake/cmake.d/02-macros.cmake | 4 +++- gdb/gdb-on-target.ini.in | 5 ++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cmake/cmake.d/02-macros.cmake b/cmake/cmake.d/02-macros.cmake index 9da4464..5f8e5fa 100644 --- a/cmake/cmake.d/02-macros.cmake +++ b/cmake/cmake.d/02-macros.cmake @@ -57,7 +57,9 @@ macro(project_targets_populate) set(PACKAGE_HTTPDIR ${PROJECT_PKG_BUILD_DIR}/htdocs) set(PACKAGE_DATADIR ${PROJECT_PKG_BUILD_DIR}/data) - add_custom_target(populate) + add_custom_command(OUTPUT ${PACKAGE_BINDIR} ${PACKAGE_ETCDIR} ${PACKAGE_LIBDIR} ${PACKAGE_HTTPDIR} ${PACKAGE_DATADIR} + COMMAND mkdir -p ${PACKAGE_BINDIR} ${PACKAGE_ETCDIR} ${PACKAGE_LIBDIR} ${PACKAGE_HTTPDIR} ${PACKAGE_DATADIR}) + add_custom_target(populate DEPENDS ${PACKAGE_BINDIR} ${PACKAGE_ETCDIR} ${PACKAGE_LIBDIR} ${PACKAGE_HTTPDIR} ${PACKAGE_DATADIR}) get_property(PROJECT_TARGETS GLOBAL PROPERTY PROJECT_TARGETS) foreach(TARGET ${PROJECT_TARGETS}) get_target_property(T ${TARGET} LABELS) diff --git a/gdb/gdb-on-target.ini.in b/gdb/gdb-on-target.ini.in index 32af784..52a33e2 100644 --- a/gdb/gdb-on-target.ini.in +++ b/gdb/gdb-on-target.ini.in @@ -5,7 +5,10 @@ # Reference: https://blog.flameeyes.eu/2010/02/remote-debugging-with-gdb-part-2-gdb/ # Start gdbserver on target and connect through SSH link -target remote | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null @RSYNC_TARGET@ gdbserver - afb-daemon --port=@AFB_REMPORT@ --workdir=@RSYNC_PREFIX@/@PROJECT_NAME@ --roothttp=./htdocs --ldpath=./lib --verbose --token=@AFB_TOKEN@ +target remote | ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null @RSYNC_TARGET@ gdbserver - afb-daemon --port=@AFB_REMPORT@ --workdir=@RSYNC_PREFIX@/@PROJECT_NAME@ --roothttp=./htdocs --ldpaths=./lib --verbose --token=@AFB_TOKEN@ + +# Disable auto answer no on questions and to set breakpoint +set confirm off # Disable auto load of libraries to improved perf set auto-solib-add off -- cgit 1.2.3-korg