On Monday 18 October 2010 10:06:21 ext Eric Bénard wrote:
> * 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 <[email protected]>
> ---
> .../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();
> }
> }
Could you please (re-)submit this using
http://qt.gitorious.org/qt-creator/qt-creator/merge_requests/
This will get the the legal stuff "right" for us.
Thank you for the contribution.
Andre'
--
André Pönitz
Senior Software Engineer
Nokia, Qt Development Frameworks
Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori
_______________________________________________
Qt-creator mailing list
[email protected]
http://lists.trolltech.com/mailman/listinfo/qt-creator