Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: codeman on May 13, 2011, 03:11:02 pm

Title: debuggergdb command history combo refinement
Post by: codeman on May 13, 2011, 03:11:02 pm
Another gdb patch I submitted a few days ago:
https://developer.berlios.de/patch/?func=detailpatch&patch_id=3154&group_id=5358

At the moment when you type a command into the debugger combo box, it inserts it in the history at the beginning, so you have to press DOWN to access the last command to repeat it. This is annoying and the opposite to what you expect from other command consoles like Bash or Quake.

I changed it so that the last gdb command is appended to the end of the combo list, so you can press UP to repeat the most recent one. Nice and intuitive.

Also, commands in the list are unique, so if the entered command was already in the history it is moved down to the bottom to become the most recent again.
Title: Re: debuggergdb command history combo refinement
Post by: oBFusCATed on May 13, 2011, 04:37:11 pm
Ah, thanks... this was annoying for me, too...

p.s. if you make other debugger patches in the future, please do so against the debugger's branch, because there are many improvements and changes. (I'll port your patch to the branch)
Title: Re: debuggergdb command history combo refinement
Post by: oBFusCATed on May 14, 2011, 03:21:08 am
In svn, thank you
Title: Re: debuggergdb command history combo refinement
Post by: killerbot on May 14, 2011, 09:09:00 am
can this patch also be applied to trunk ?
Then we have a debugger improvement there also ;-)
Title: Re: debuggergdb command history combo refinement
Post by: oBFusCATed on May 14, 2011, 11:58:55 am
Morten or Jens should decide, because they do the merging.
And applying the patch would probably make them suffer...