Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* capturing command output to a variable
@ 2009-01-11 21:23 Mathew Yeates
  2009-01-11 22:38 ` Tom Tromey
  0 siblings, 1 reply; 2+ messages in thread
From: Mathew Yeates @ 2009-01-11 21:23 UTC (permalink / raw)
  To: gdb

I understand that turning on logging will allow me to save command
output to a file. But what if I want to save the output in a
convenience variable??

e.g. How can I do something like the following where I capture the out
of the "where" command.

set $x = `where 1`
echo $x

Mathew


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-11 22:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-11 21:23 capturing command output to a variable Mathew Yeates
2009-01-11 22:38 ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox