* this allows to have a generic script which can upload and launch the program to debug on the target.
* example of a such script : USER=root { ssh $u...@$1 killall -9 gdbserver &> /dev/null ; ssh $u...@$1 killall -9 $4 &> /dev/null ; sleep 1; scp $3/$4 $u...@$1:/tmp/ &> /dev/null ; } ssh $u...@$1 gdbserver --wrapper env QWS_MOUSE_PROTO=tslib:/dev/input/touchscreen0 -- :$2 /tmp/$4 -qws & exit 0 * Parameters passed to the script are : $1 : IP of the target $2 : port for gdbserver $3 : path to the application's binary $4 : application's binary name $5 : path to gdb on the host (can give access to the toolchain) $6 : name of gdb on the host (can give access to the prefix of the tools, in order, for example to strip the binary in the script before send it to the target. * tested using QT-Creator, a toolchain generated with OpenEmbedded's meta-toolchain-qte recipe and and ARMv5 target. Signed-off-by: Eric Bénard <e...@eukrea.com> --- .../debugger/gdb/remotegdbserveradapter.cpp | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp index 86fa9ed..ffadec9 100644 --- a/src/plugins/debugger/gdb/remotegdbserveradapter.cpp +++ b/src/plugins/debugger/gdb/remotegdbserveradapter.cpp @@ -96,7 +96,13 @@ void RemoteGdbServerAdapter::startAdapter() showMessage(_("No server start script given. "), StatusBar); emit requestSetup(); } else { - m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript); + m_uploadProc.start(_("/bin/sh ") + startParameters().serverStartScript + + _(" ") + startParameters().remoteChannel.split(':').first() + + _(" ") + startParameters().remoteChannel.split(':').last() + + _(" ") + QFileInfo(startParameters().executable).absolutePath() + + _(" ") + QFileInfo(startParameters().executable).baseName() + + _(" ") + QFileInfo(startParameters().debuggerCommand).absolutePath() + + _(" ") + QFileInfo(startParameters().debuggerCommand).baseName()); m_uploadProc.waitForStarted(); } } -- 1.7.0.4 _______________________________________________ Qt-creator mailing list Qt-creator@trolltech.com http://lists.trolltech.com/mailman/listinfo/qt-creator