[PATCH][EXAMPLE] gdbserver embedded debugging in kdevelop
Roger Larsson
roger.larsson at norran.net
Wed Aug 6 05:38:10 UTC 2003
On Wednesday 30 July 2003 00.50, Roger Larsson wrote:
> Hi,
>
> I have added some scripting features necessary for embedded debugging in
> kdevelop.
>
> Linked is also a project that uses those features to debug over ssh on an
> x86 using static libraries.
> http://w1.910.telia.com/~u91005870/hello-distclean.zip
> you will have to edit user and computer names...
>
> Short description:
> * After build the executable has to be transferred to the target.
> This is done in src/Makefile.am
> all: hello.remote
> hello.remote: hello
> transfer-target.sh hello
> Note: transfer-target.sh also strips the executable.
>
> * When pressing RUN button (>)
> * First a shell script "prepare-target.sh" (place in path) is executed
> that uses ssh (could use rsh, serial terminal, etc.) to start the
> application on the target - input and output are redirected.
>
> * A user defined gdb script, "prepare-target.gdb", is run.
> This connects to the target application.
> and executes an optional "continue" to reach the first breakpoint.
>
> * Additional feature
> * A gdb script run at init time (not tested)
>
> Missing:
> * GUI for configure options, see "hello.kdevelop" for manual configuration.
Added, review this part carefully.
>
> Problem:
> * Timing between shell script and gdb script is tight...
> * ./configure => "-g -O2", this leads to:
> * breakpoints might not work
> * confusing single stepping.
I should note that this is a potential problem - and that the possibility
can be reduced with a
shell sleep 5
in the prepare-target.gdb file
/RogerL
--
Roger Larsson
Skellefteå
Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remote-kdevelop-R6.patch
Type: text/x-diff
Size: 25769 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20030806/8a56c88d/attachment.bin>
More information about the KDevelop-devel
mailing list