This is the mail archive of the gdb@sourceware.cygnus.com mailing list for the GDB project. See the GDB home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: keeping commands out of the history


> I'm playing with emacs's gud.el to make it display some stuff from
> gdb in other buffers.  The problem is that the commands used to get the
> data go into gdb's history, which is not intended.  I looked for some
> option for temporarily bypassing command history, but didn't find anything.
> 
> It seems that DDD is able to do this.  I looked at its source for a bit,
> but didn't see anything special it's doing.
> 
> Does anyone know if there's a way to do what I'm talking about, or how
> DDD seems to manage to do it?

I have the code you need, but it is currently tied to a custom command we
use here.

It is easy for me to implement a whole new command that is like 'print' or
'inspect' but does not add to the value history, and submit the patches.
Would this work for you?

-- 
Todd Whitesel
toddpw @ wrs.com