This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: multiple command on one line
On Thu, Feb 21, 2008 at 11:52:53AM -0500, Frédéric Bastien wrote:
> I
>
> I need to print many variable at each itaration of a loop. I would
> line to be able to print all of them in a single line like in bash. Is
> this possible? If yes how? I have look in many place but I never
> found.
>
> example
>
> p var1
> p var2
> p var3
>
> I would like to be able to do something linke
>
> p var1; p var2; p var3
It sounds like what you want is either the "printf" command, to print
many variables on one output line, or "display", to print them
automatically.
--
Daniel Jacobowitz
CodeSourcery