* multiple command on one line
@ 2008-02-21 16:59 Frédéric Bastien
2008-02-21 18:07 ` Daniel Jacobowitz
0 siblings, 1 reply; 3+ messages in thread
From: Frédéric Bastien @ 2008-02-21 16:59 UTC (permalink / raw)
To: gdb
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
thanks
Frederic Bastien
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: multiple command on one line
2008-02-21 16:59 multiple command on one line Frédéric Bastien
@ 2008-02-21 18:07 ` Daniel Jacobowitz
2008-02-21 19:02 ` Frédéric Bastien
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Jacobowitz @ 2008-02-21 18:07 UTC (permalink / raw)
To: Frédéric Bastien; +Cc: gdb
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: multiple command on one line
2008-02-21 18:07 ` Daniel Jacobowitz
@ 2008-02-21 19:02 ` Frédéric Bastien
0 siblings, 0 replies; 3+ messages in thread
From: Frédéric Bastien @ 2008-02-21 19:02 UTC (permalink / raw)
To: Frédéric Bastien, gdb
thanks for your fast response.
Fred
On Thu, Feb 21, 2008 at 11:59 AM, Daniel Jacobowitz <drow@false.org> wrote:
>
> 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
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-02-21 18:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-21 16:59 multiple command on one line Frédéric Bastien
2008-02-21 18:07 ` Daniel Jacobowitz
2008-02-21 19:02 ` Frédéric Bastien
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox