This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
capturing command output to a variable
- From: "Mathew Yeates" <mat dot yeates at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 11 Jan 2009 13:23:01 -0800
- Subject: capturing command output to a variable
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