help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GDB "print" to echo area


From: Nick Roberts
Subject: Re: GDB "print" to echo area
Date: Fri, 18 Jul 2008 13:37:54 +1200

 > Is there a configurable way to make GDB's 'print' command send output to the
 > echo area, instead or in addition to the *gdb* window?

No.

 > If the answer is 'no', can I define a GDB command that would do that?

No.  The output to all GDB commands typed in the GUD buffer goes to the GUD
buffer.  Emacs doesn't know what they do, it just provides the terminal/pipe.

 > Or the only way is hacking GUD's code?

You could write a lisp function that uses gdb-enqueue-input and a handler
but I'm not sure that it's worth it.  I find the GUD buffer a convenient
place to have a log of the debug session.

-- 
Nick                                           http://www.inet.net.nz/~nickrob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]