Code::Blocks Forums

User forums => Embedded development => Topic started by: Typz on May 07, 2008, 09:27:48 pm

Title: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: Typz on May 07, 2008, 09:27:48 pm
Hello,

For embedded development, at work, we need to use custom commands to control GDB.
Thus, we implemented patches to let us configure this. I just posted the patch on BerliOS (patch #2458: "Custom GDB commands (run, continue...) for remote debugging").

With this patch, the GDB commands to use can be customized for each build target, in the remote gdb configuration (there is a new tab). Please note however that this configuration applies even if remote debugging is not enabled for the target.

The commands which are customized are: run, continue, quit, get thread list (info threads), switch thread (thread %i).
If a field is left empty, the default command is used.

Can somebody please check the patch and commit ?
Thanks,
Title: Re: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: MortenMacFly on May 08, 2008, 06:02:21 pm
Can somebody please check the patch and commit ?
Very interesting! I hope/guess Yiannis (mandrav) will note that one too and respond. He is into such things, too ATM (IMHO).
Title: Re: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: fackue on May 16, 2008, 02:27:21 am
Can someone upload a windows build with this patch please?
Title: Re: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: MortenMacFly on May 16, 2008, 06:40:25 am
Can someone upload a windows build with this patch please?
Just wait for the next nightly...
Title: Re: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: fackue on May 19, 2008, 10:38:04 pm
I can't figure out where the settings are for this in the newest nightly (May 19)?
Title: Re: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: killerbot on May 19, 2008, 10:54:02 pm
patch 002458   Custom GDB commands (run, continue...) for remote debugging : this has not been applied (yet??) !!
Title: Re: [patch] Custom GDB commands (run, continue...) for remote debugging
Post by: Joerg on May 23, 2008, 09:28:43 am
Need this patch very urgently!
When I first hit the run button I can see the gdb error in the
gdb debugger console 'target does not support run',
On second hit the button emits continue.!?
I need continue from the first!
The stop button also doesn't seem to work as expected.
I need a break command there but I tries to end the session?
I know there was a keyboard shortcut (F8?) for this but ....
Apart from that C::B looks like a good IDE for embedded development.
Greets,
Joerg